"Show Workflow" option is not appearing on RITM if I impersonate with someone and create a request ?

Virendra K
Kilo Sage

Hi All,

I am experiencing weird scenario.

"Show Workflow" option /link is not appearing on RITM. I impersonated with X user and submitted the request, I opened RITM after impersonating with myself. Task was not generated and "Show Workflow" option is not appearing (ses the snap).

But I (as a developer) submit the request and if see the RITM then "Show Workflow" option is appearing.

I tested with different user as well, but cannot see it

What may be the reason ?

Thanks.

find_real_file.png

Regards,

Virendra

 

1 ACCEPTED SOLUTION

Virendra K
Kilo Sage

Thanks all for your quick help to assist me.

Issue is resolved. Its a stupid mistake I did. I created the new WF and was testing it without Publish it. As developer it was working for me but after impersonating its was not.

"Show Workflow" is appearing after PUBLISHING the WF

View solution in original post

8 REPLIES 8

Jaspal Singh
Mega Patron
Mega Patron

Hi Virendra,

 

Look for System Definition >> UI Actions >> Show Workflow. Open the record & check for condition for Show Workflow UI Action. You need to change it to make it work for rest.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

     It is there

AbhishekGardade
Giga Sage

Have you checkd if workflow is attached or not? Have you used current.setworkflow(false)?

Start by checking the workflow properties (in the hamburger menu in the upper left). Is your workflow operating on the same table as your record? Are there any conditions specified (e.g. catalog item type needs to be found, a certain state needs to be hit, etc.

You can check the conditions under Workflow> Workflow Versions, locate the record and the conditions should be visible on that form as well.

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Most UI Actions Show workflow contain something like new Workflow().hasWorkflow(current).
If you dig into this Script Include and function, it's just checking if there's a workflow context attached.

Did you verify this? Check the RITM, XML for example, is context filled?
Can you verify that you are seeing the UI Action yourself as an admin for this same RITM?
Can you verify actually a workflow context started?
Is this on your dev instance, and might this be a new workflow which not have been published yet?

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn