You need to sign in to do that
Don't have an account?
Ragaz Mahe
Trigger to assign a task to the users in the public group
Can anyone please help to solve the below scenario.
I am having a Case object with two picklist fields
Reason
Secondary reason
The above picklist fields contains many values. I am focusing on whenver a Case is created or updated with Reason value as Test_Reason & Seconday Reason value as Test_Secondary_Reason, I would be assigning the created task by fetching the two fixed users(A & B) stored in a public group(Group name: Test_PG).
I am having a Case object with two picklist fields
Reason
Secondary reason
The above picklist fields contains many values. I am focusing on whenver a Case is created or updated with Reason value as Test_Reason & Seconday Reason value as Test_Secondary_Reason, I would be assigning the created task by fetching the two fixed users(A & B) stored in a public group(Group name: Test_PG).
Try below code :
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For SFDC Support: varaprasad4sfdc@gmail.com
Blog: http://salesforceprasad.blogspot.com/
Salesforce latest interview questions :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1
Please change API name, fix syntax errors and change code to suite your requirement.
Trigger:
Trigger Handler Class:
Please mark this as BEST ANSWER, if this helps solve your problem.