function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priyesh Misquith 12Priyesh Misquith 12 

On after update trigger how to get child object field new value and old value

I have the Scenario  when the Opportunity(parent) is updated . i need to get the value of old price and new price of each line item (child).and conpare those values and perform the some task.

How can i get the old value of the line item(child) and new value(child) of line item price.

the trigget should run parent object
Abhishek BansalAbhishek Bansal
Hi Priyesh,

You can get the old values only of the same object on which trigger is exceuting. There is no option to get the old value of a child record as those records never exist in the trigger context.
Let me know if you need any further information on this.

Abhishek Bansal.
bitol brobitol bro
 WhatsApp Love Status Video Download
WhatsApp Love Status Video (
Here is the best collection of WhatsApp Status Video In Hindi and Punjabi
rain whatsapp status video download