How workflow is getting attached with Change

Tamil5
Tera Expert

Hi All,

In my instance,

On the Change form, we have a Request Approval button to change the Approval status from "Not Yet Requested" to "Requested".

Only if the Change's approval state is "Not Requested" then this button will be visible.

When user hits the "Request Approval" it will change the Approval status & workflow will be attached with that change.

Request Approval - UI Action details,

Condition:

current.approval=='not requested' && gs.hasRole("itil")

Script:

action.setRedirectURL(current);

current.approval='requested';

current.update();

I have a record producer page for non-itil users to create Change. Since these users do not have the access to do any action on the Change form,

I'm setting default value for Approval as "Requested".

In this scenario workflow is not getting added with the Change.

What change I need to make or where I need to check to attach the workflows with the Change which is created from Record Producer.

Can anyone please advice.

Thanks

Prici

6 REPLIES 6

Hi Chuck Tomasi,



Yes I can see the "Run the workflow" dropdown. But with this how can I judge it is triggers by a business rule.


Also whether the below image and the option which you have mentioned is same.?


(I understand my image belongs to old version, but in Geneva & higher versions where we can find it)


wf.PNG



Thanks.


Prici.


Hi Pricilla,



Thank you for the screenshot. A picture is worth 1000 words and all that...



Based on the UI, it appears you are using an older version of ServiceNow, so there may be some differences between the screenshots I posted. Your Condition is "Reason is Hardware upgrade". If the worfklow engine encounters a record with that field with that value, then this workflow "Hardware Upgrade" is attached to that change_record. That's what triggers it.