Approval History User Name when using "Timer Activity" in workflow

Maiko Kobashi
ServiceNow Employee
ServiceNow Employee

The customer was experiencing the issue with the workflow that mails does not get sent out due to a timing issue (because the workflow is designed as “Before Engine” thus the mail event is triggered before a record gets committed to DB which caused mails not sent out occasially).  So they implemented “Timer Activity” to pause for 10 seconds to allow a record to be committed for sure.

 

However, by design the “Timer activity” is executed by “system” user until the next “stop transaction” activity, as in the following doc.

https://docs.servicenow.com/ja-JP/bundle/vancouver-servicenow-platform/page/administer/workflow-acti...

 

Therefore, when implementing the “Timer Activity” in the beginning of some Approval workflow, a record creation user (i.e. user name requesting for approval) is recorded as “system” in the approval history (task.approval_history).  The customer needs to see the real approval requester user name as the approval history especially for their audit purpose.

 

[ Question ]

Is there any good way to record “the original approval requestor user name” in the approval history instead of “system” even when using “Timer Activity”?

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi @Maiko Kobashi 

the days of Workflows are over. So why don't you migrate to Flow Designer?

Maik