Opened by is empty on sctask using worklow

sola2
Tera Contributor

I know when flow designer is used this can be checked/configured by  clicking the ellipses in the top right of the window, select properties, and look at the Run As field. 

 

But in this case, the problem is happening with catalog items that have not been changed to flow designer yet and continue to use workflow, Is there any way to check/fix that?

7 REPLIES 7

Chaitanya ILCR
Mega Patron

in the sc task activity script you can set using task.opened_by= you vlaue

ChaitanyaILCR_0-1767890366653.png

 

or you can create a BR

ChaitanyaILCR_1-1767890490022.pngChaitanyaILCR_2-1767890511722.png

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

@Chaitanya ILCR  thank you, the business rule helped. However it seems it is not actually empty but set as "system". Do you happen to know how to fix that? 

sola2_2-1767893878818.png

 

Hi @sola2 ,

Did you back out the changes done  on the Opened by dictionary that are suggested by Ankur?

 

If yes and still facing the issue 

 

Try adding a OR condition in the BR with created by is system 

 

Or 

 

It's better to the Opened by in the workflow as suggested in the 1st approach 

 

 

 

Regards 

Chaitanya 

 

Ankur Bawiskar
Tera Patron

@sola2 

opened_by on sc_task which is from task table should get populated automatically with the logged in user even though you are using workflow

it should get populated with the user in whose session the catalog task is getting created

AnkurBawiskar_0-1767891285173.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader