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
Sourabh KhoslaSourabh Khosla 

how to update a field without using workflow or PB?

Hey guys, 

I am trying to update a field on a master object based on couple of values(criteria needs to be if X=5(on the header - thats when it should fire), then check if Y(at line level)  is equal to 6 and then come back to header and update Z = 7) .

If yes then update checks that need to be performed) in the line level. I don't want this to fire on creation/edition of the record but rather when the particular criteria met(In my case as soon as X=5). So, basically PB and WF are out of picture I guess, since they fire only when the records are edited or created. 

Am I overcomplexing this? 

If you are using VF page you may try by using action poller