Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set ctask opened by field same as the logged in user

jituksingh
Kilo Guru

Hi All,

When ctask is opened by a flow and flow's run as user is set to system user, the open by field on ctask is empty. I want to set it automatically to same as the logged in user. Can you please help me on this?

 

jituksingh_0-1739470530081.png

Thanks in advance

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jituksingh 

What is your use case to assign the task to logged user, user might be not part of the group or might be a manager who is checking the task.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

jcmings
Mega Sage

What is the trigger condition for your flow? Is it a record being updated? Can you match the trigger person to the opened by field?  For example,  if the trigger is "case updated," you'd set ctask.openedby = trigger.updated_by

jituksingh
Kilo Guru

Trigger is service catalog

Are you able to get the trigger user from the data pills?