You need to sign in to do that
Don't have an account?
Shrinivas
Need to update check box field using trigger
Hi Team,
Trying to updating once of the check box field from Case.
Created one trigger like When Case got closed creating the new case with certain fields,Attachements and Email from the old case to new case.
Now i have created one check box field from case object i am tryint o updating the field = true when new case got created.
Please help me on this from where i need to add the conditon from my trigger .
Thanks in Advance
Trying to updating once of the check box field from Case.
Created one trigger like When Case got closed creating the new case with certain fields,Attachements and Email from the old case to new case.
Now i have created one check box field from case object i am tryint o updating the field = true when new case got created.
Please help me on this from where i need to add the conditon from my trigger .
Thanks in Advance
I have updated your code to update the checkbox from old case. Please find the update code below: Code is eclosed between the comment tags - Code Added by Abhishek: Start/End
Thanks,
Abhishek Bansal.
All Answers
Greetings!
You can add the line where you are assigning the values for the New case fields from old case fields and before insert() method.
Please check the sample code in the below thread:
https://salesforce.stackexchange.com/questions/164666/trigger-to-create-a-new-case-whenever-there-is-a-new-email-tag-on-the-closed-ca
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri
I have updated your code to update the checkbox from old case. Please find the update code below: Code is eclosed between the comment tags - Code Added by Abhishek: Start/End
Thanks,
Abhishek Bansal.
You can contact me on:
Gmail: abhibansal2790@gmail.com
Skype: abhishek.bansal2790
Thanks,
Abhishek Bansal.