Created By value in Assignment Groups created via RITM

SanikaK
Tera Expert

I have a requirement where I need to set the 'created by' field in sys_user_group table to the requestor of the group or the manager of the group

Current Scenario : When the assignment group is created via AGCM catalog item, new record gets created in the sc_req_item table(RITM). RITM has certain approvals, lets say 5 approvals. When the last person approves the RITM, the assignment created in sys_user_group table captures the id the approver(the person who approves last).

Expected scenario - The created by field should be populated by requestor/manager

Just wanted to understand from where the created by value is fetched in assignment group 

1 ACCEPTED SOLUTION
5 REPLIES 5

Tanushree Maiti
Giga Patron

Hi @SanikaK 

 

In ServiceNow, generally ,for order item->approval->fulfillment , we use flow or workflow.

A record created by a flow is generally not automatically attributed to the user who triggered the flow.

By default, records created within a Flow Designer action are recorded as created by the system user (Like System ), because the flow runs as a system process.

 

Now , It is not recommended to Run the flow by the the user who initiated the flow, reason being in that case ,you have to give that End User-  Create access on sys_user_group table which is foundation table of Servicenow.

 

KB0960325 Flow is run as "System" user even though it is configured to Run as "User who initiated th... 

KB1158848 'Created by' user displayed in flow context when the flow is triggered by a script.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: