Forum Post: {!#LOOP} and before suffix lack functionality

  • Thread starter Thread starter matman
  • Start date Start date
Status
Not open for further replies.
M

matman

Guest
I was trying to implement a trigger that needs to delete detached related records on 'after update'. Before I can delete those records, I need to get all those detached records. One idea was to use {!#LOOP.R108244227#before}, which doesn't work because {!#LOOP} returns an Error. Another idea was to just use {!R108244227#before}, but for some reason this returns the same as rbv_api.getFieldValue(). Is there any way to get the values of a related field #before an update? I have tried several scripts, for example: var x = ""; {!#LOOP_BEGIN.R108244227} x += {!id#before} + ", "; {!#LOOP_END.R108244227} rbv_api.log("debug", x);

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