0
trigger cm on CampaignMember (after insert) {
    for(CampaignMember cm : Trigger.New){
        System.debug('cm.Type '+cm.Type);
        System.debug('cm.LeadOrContactId '+cm.LeadOrContactId);
    }
}

Both the Debug statements (Type and LeadOrContactId) are printing null, though when i query them separately they do have data. Any idea why ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.