How to add comment as sys user in flowdesigner (subflow)

dmorgan_isc
Tera Expert

Hi, I am not a coder, so i am unsure how to add a comment to a RITM as the sys user in subflow.
Example:

dmorgan_isc_0-1720745962323.png

I would like to know how to change that additional comment to be added as the sys user using:

 
current.work_notes.setJournalEntry(""messages"", 'System User');



At the moment the above is being added as the user who opens the catalog item
I hope that makes sense. thanks

1 REPLY 1

dmorgan_isc
Tera Expert

Actually, i just worked out if i run the subflow as the system user that seems to be all i need. Not sure if this is bad practice