Can we update attribute use the system user account

Tina24
Giga Guru

we use a business rule update the attribute "Action Status" when user create the record, can we switch account in script to use the System user update the "Action Status" value?

 

Tina24_0-1711128242896.png

 

1 ACCEPTED SOLUTION

Neel Patel
Tera Guru

Hi Tina,

 

Since you are working with a business rule, before your scripts you can add this line:

gs.getSession().impersonate("<sys_id of integration user>");

 

Hope this works! 

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

When is you BR running. If it is a Before Insert business rule, it should keep the user as System.


Please mark this response as correct or helpful if it assisted you with your question.

Neel Patel
Tera Guru

Hi Tina,

 

Since you are working with a business rule, before your scripts you can add this line:

gs.getSession().impersonate("<sys_id of integration user>");

 

Hope this works!