Forum Post: Values of Masterrecord not available in Loop in trigger

Status
Not open for further replies.
W

wweultjes

Guest
Hello, I'm working on a trigger that loops through some related records and perform some action on those records with values from the master object. In the loop below debugging shows that hours and startdatetime are not correctly substituted. Only the suplier field is correctly substitued. This is not what i expected. Solved this by assigning the hours and startdatetime to a variable before the loops start. Now it's working correctly. {!#LOOP_BEGIN.R228075#214066} performAction("{!R228075,supplier}","{!startDateTime#iso)",{!hours}); {!#LOOP_END.R228075} Now i'm wondering if this is designed behavior or that i ran in some bug. If it is designed behavior it might be a good idea to substitute also the normal available values as well in the loop. Regards, Wilco Weultjes.

Continue reading...
 
Status
Not open for further replies.
Top