I have a from for a DOM definition and a variable that takes the ID of the last created instance. I would like the DOM definition form be filled in by the updated variable value. Is there a way to do this?
Hi Sion,
I don’t think this feature exists at ingest time in a form, but you could use the ‘On Create’ script. This would run after an instance is created, letting you fetch the ID of the previous instance and populate it in the new one (see docs).
Is it an option to insert the IDs immediately back into the newly created DOM object? Once it's added to the newly created instance, you could use it in the LCA.
Thanks for your help Sebastiaan. I have successfully got the on create script to run and it detects the instance id's and definition types but I've not been successful in getting this data back into the low code app. Usually we can only bring script outputs back if the low code app initiated the script itself.
do you have any suggestions for returning the id data back to the ow code app in this scenario? Due to our workflow, I'm creating 2 instances in one action for two differrent definitions. I then want to link the ID's of both after they're created so that there's a relationship