You need to sign in to do that
Don't have an account?
Sandeep TechAffinity
How to solve Test Class issue on CampaignMember sObject?
Hi Guys,
In the Test Class when I am trying to insert CampaignMember Record with Type "Lead" It is getting an error Like
Can Anyone help me with this?
Thanks
Sandeep.
In the Test Class when I am trying to insert CampaignMember Record with Type "Lead" It is getting an error Like
System.DmlException: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Account__c]: [Account__c]But I Need CampaignMember record with Lead Id only.
Can Anyone help me with this?
Thanks
Sandeep.
you need to insert the required Account__c field in the test data.
Thanks!!
Yeah I understood the Error but I need CampainMember record with a Lead record Because In my main class I am fetching CampaignMembers with only a Lead records. Thanks
Sandeep.