You need to sign in to do that
Don't have an account?
Bob Lee 14
I need help in apex trigger to insert record when checkbox is clicked
I need assistance in working on Trigger. I have a requirement, where I need to insert contact when Checkbox is clicked in account.
Eg: I have 3 checkboxes Electronics, Fashion, Furnitures. If I select 2 checkboxes Electronics and Fashion and save the Account. Then, I need to insert 2 contacts with field selected as Electronics and field selected as Fashion in another record.
I need assistance in this requirement.
Thanks.
Eg: I have 3 checkboxes Electronics, Fashion, Furnitures. If I select 2 checkboxes Electronics and Fashion and save the Account. Then, I need to insert 2 contacts with field selected as Electronics and field selected as Fashion in another record.
I need assistance in this requirement.
Thanks.
Please try it with below code:
Also, you can take help from below link:
https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=BESTANSWERS&id=9062I000000Xts7QAC
Please mark it as best answer, if you find it helpful.
Thanks.
Sachin Arora