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
apex code shareapex code share 

Very URGENT!!! Please help me writing a trigger for cross objects field update.


I have 3 custom objects and their feilds are :-


1> Object :-Salesreturn  ///////Feild:- Internal UIN

2>object:- UIN MASTERS///// Feild:- Extenal_uin_master,Registered_At_Depot_masters

3> object:- UIN PRODUCTS/////Feild:- a>Internal_UIN_products(this internal uin can be of Mechanic or retailer or reborer i.e max 3) ,,b> Registered_At_Depot_products(checkbox),,,c> Status:-submitted,in process,Start



When we enter any Internal Uin in salesreturn object then it checks in UIN Products that this internal exists in UIN Product and if it exists and its status is not equal to submitted then Registered_at_Depot_products should get unchecked.

Also,this internal_uin_products is related to any Extenal_uin_master(which is there in UIN MASTERS object) and Hence,Registered_At_Depot_masters at uin masters should also get unchecked.

And a mail should go to a user say


Could you detail the relations between these three object much more.?