created by field in sys_journal_field table populated from where?

Mohamed Taha
Tera Expert

I have BR works on incident table with when is before inserted or updated 
based on some condition I insert additional comment using this command 
current.comments="some text here";

and it appears correctly but it sets the created by to me" current user" instead of system 

how can i solve this or edit it to make the created_by field to system

6 REPLIES 6

@yes it will work on before update also.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

sumitraghav
Tera Contributor

Create a flow running as a System User and keep the trigger as per your requirement[Created or Updated] on the table record. And do the additional comment update as the update record action within the flow. I think this should meet your requirements.  

If my answer helped you in any way, please then mark it as helpful or correct.