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
steve456steve456 

Trigger Help

I have three objects Inventory , Order , Product

 

Fields on Inventory are Order (Lookup)

                               and Product(Lookup)

 

 

Field On Order is Revenue 

 

Field on Product is Product Name 

 

I need a to write a trigger on Inventory  to update a field  "Revenue" on Order object  if the product name conatins World , the value of the "Revenue" should be 20$ esle 0$

 

 

I am thinking i need to write an after update trigger on Inventory 

 

Can anybody help me with the code

 

Thanks in advance

 

 

Srinivasa Chary TaduriSrinivasa Chary Taduri

Yes. after update