How workflow is getting attached with Change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 05:53 AM
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
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 05:56 AM
Check in the workflow properties what are the condition to start it, maybe there is more than the status.
BR
Marcus

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 05:58 AM
Hi Pricilla,
Take a look at the properties of the workflow to understand when it gets triggered/started. It is likely reacting to the state and approval on the change request to start.
Reference:
Workflow Concepts - ServiceNow Wiki
Creating a Workflow - ServiceNow Wiki
Using Workflow Activities - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 07:00 AM
Hi Chuck,
Thanks for your time,
In my instance I could not find the "Run after bus. rules run" option in any of the workflow to check based on what Worflow will run.
But with the help of notification & events I could found the Business Rule name which is related to the same opeartion.
BR - Approval Events (Task)
This is the business rule which is getting called and adding the approvers.
It seems it is a default BR which is available in all the instance. (checked with a Servicenow DEMO instance)
Probably when I create CR from Record Producer page, this BR should be executed.
Is it possible ?
Thanks in advance
Prici

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 07:14 AM