You need to sign in to do that
Don't have an account?
Terminusbot
Apex Trigger: Update a field on Opportunity record when a new note is inserted.
Hello,
I have created a field on the Opportunity object called Latest Note. When a user adds a new note to the Opportunitues Notes section I want to copy the Body and insert it to the field "Latest Note". Can a trigger be created on the Note object to handle this?
Thanks for all your help,
Ricky
I have created a field on the Opportunity object called Latest Note. When a user adds a new note to the Opportunitues Notes section I want to copy the Body and insert it to the field "Latest Note". Can a trigger be created on the Note object to handle this?
Thanks for all your help,
Ricky
Try with below code it will help ,Check the Api name of opportunity field .
Go to developer console from there you can create trigger file>new >apex triggger .
Let us know if it helps !!
Thanks
Manoj
All Answers
Here is the sample code for the scenario.
Thanks,
pRAMODH.
Try with below code it will help ,Check the Api name of opportunity field .
Go to developer console from there you can create trigger file>new >apex triggger .
Let us know if it helps !!
Thanks
Manoj
I created a trigger and updated the API name on the Latest Note field. As a test I created a new note and updated the same note on an Opportunity. The Latest Note field was empty on both accounts. Looks like it's not updating the Latest Note field on creation or update.
Record Type Name: OEM Programs
or Record Type Id?