You need to sign in to do that
Don't have an account?
A Gunale
trigger to create two Opportunities when Account MultiPicklist field has two value
I have two multipicklist fields. One is in Account object and Another in Opportunity. If Account Multipicklist field has Two values (X,Y) then create two opportunities and update dat value into opportunity multipicklist field. If Account related opportunities has X value then create only one opporunity nd update field with Y.
Thank you.
Thank you.
As per your requirement I have written the trigger logic which will handle both the insert and update case as well as the bulk data:
Please take care of any syntax error and API names of the field. Let me know if you need any further help on this.
Thanks,
Abhishek Bansal.
All Answers
As mentioned in the below link that has a similar use case you can try the below method to implement your scenario:
>> https://salesforce.stackexchange.com/questions/269718/trigger-to-create-multiple-records-based-on-multiselect-picklist-value
Let me know in case if you need any help in implementing your scenario.
Regards,
Anutej
You can achieve this with the help of the trigger. Please follow the below steps:
- Create a trigger on the Account object. Context would be after insert, after update.
- Check the value in the multipicklist field and based on that value create the opportunity as you want.
Let me know if you need any further help on this.Thanks,
Abhishek Bansal.
My requirement is , While updating Account record , It should check Related Opportunities has same multipicklist value of Account. If so then don't create opportunity else create an opportunity.
Two Opportunities are created i.e 'op1' its picklist value is updated with X and 'op2' its picklist value is updated with Y.
Requirement : If I update 'Person' Account by adding Z in 'Multi__c' Then it will be X;Y;Z.
During updation It should check whether the related Opportunities picklist field has value Z . If not Create an Opportunity with picklist value Z.
As per your requirement I have written the trigger logic which will handle both the insert and update case as well as the bulk data:
Please take care of any syntax error and API names of the field. Let me know if you need any further help on this.
Thanks,
Abhishek Bansal.