function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanjay ShroffSanjay Shroff 

how to query the Id Field of the campaignInfluenceModel?

Nubes Elite Technologies Pvt. LtdNubes Elite Technologies Pvt. Ltd
Hi Sanjay,

You can try the below query -
[ SELECT Id FROM CampaignInfluenceModel ]

Thank You,
www.nubeselite.com
Development | Training | Consulting

Please mark this as solution if your problem is solved.
Deepali KulshresthaDeepali Kulshrestha
Hi Sanjay,

I have gone through your problem please refer bellow code:
Apex class:- 

public class DemoComp {
    public static void testd(){
        List<CampaignInfluenceModel> ls=[select id from CampaignInfluenceModel ];
        System.debug(ls);
            
        }
        
    }

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com