You need to sign in to do that
Don't have an account?
Priyadarshini Manoharan 3
How to update a multi-select picklist field at Lead level from a multi-select picklist field at Campaign Level
How to update a multi-select picklist field at Lead level from a multi-select picklist field at Campaign Level? when the multi-select picklist field at Lead level is blank
All Answers
Throw the value in campaign member from campaign and then on the lead itself. But however, if lead is part of multiple campaign means if the lead has more than one campaign member records then which value would be appropriate?
You can tell us your requirements in depth and will see if this possible or not?
Thank You!
I have written an apex trigger after insert on CampaignMember object.
the soql query below shows null value for Campaign.Multiselectpicklist__c while debugging in apex trigger, however in the developer console it shows the value of the field seperated by ;. The issue is because it is showing null value in the soql, when I assign this to Lead.Multiselectpicklist__c, it still remains null.
Another question is can I assign one multselect picklist value to another like this? currentLead.Multiselectpicklist__c = CamMeminLoop.Campaign.Multiselectpicklist__c;
else please suggest how I can assign one multiselect picklist value to another.
list<CampaignMember> allCamMemlist = [SELECT Id, LeadId, CampaignId , Campaign.Multiselectpicklist__c, Lead.Multiselectpicklist__c FROM CampaignMember where LeadId IN :allLeadIds and Campaign.Multiselectpicklist__c != null and Lead.Multiselectpicklist__c=null];