You need to sign in to do that
Don't have an account?
UPDATE RELATED OPPORTUNITY ACCOUNT NAME ON CASE OBJECT
REQUIREMENT:
WE HAVE A CASE WITH ACCOUNT,
IN CASE RELATED LIST ,WHEN WE CREATE AN OPPORTUNITY
THEN IT ACCOUNT NAME SHOULD BE AUTOMATIC UPDATED AS CASE ACCOUNT NAME.
ALSO WHEN I UPDATE THE CASE ACCOUNT FIELD,,IT SHOULD REFLECT IN THE RELATED OPPORTUNITY OBJECT
WE HAVE A CASE WITH ACCOUNT,
IN CASE RELATED LIST ,WHEN WE CREATE AN OPPORTUNITY
THEN IT ACCOUNT NAME SHOULD BE AUTOMATIC UPDATED AS CASE ACCOUNT NAME.
ALSO WHEN I UPDATE THE CASE ACCOUNT FIELD,,IT SHOULD REFLECT IN THE RELATED OPPORTUNITY OBJECT
Yes we can write a single handler as below.
Handler trigger on case
Trigger on opportunity
Thanks,
All Answers
Here we have to write triggers on two different object.
For creation of opportunity on case we have to write the trigger on opportunity as below.
For update of the account field on the case object we have to write trigger on case object as below.
If this solution helps, Please mark it as best answer.
Thanks,
Thanks Bro thats working perfectly.
Bro is there any possibility that we can merge this 2 code in one Handler class and call that handler class with help of apex trigger?
Yes we can write a single handler as below.
Handler trigger on case
Trigger on opportunity
Thanks,