- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2020 02:33 AM
Hello,
Can anyone please help me on this below requirment.
I have created a new state as Draft for change request.Created new ui action'submit request'.this button will be visible on all type change request like emergency standard and normal and the when the state is in draft.
Once click on the ui action 'submit request' the normal workflow that has been defined for all the type request will start.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2020 02:56 AM
Hi,
You can use this script to trigger workflow from script
Remember UI Action should be server side
triggerWorkflow();
function triggerWorkflow(){
var wf1 = new Workflow();
wf1.startFlow(wf1.getWorkflowFromName('give the workflow name'), current, 'update');
}
I would insist if possible make the workflow trigger based on the proper condition
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2020 09:26 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate answer as correct & helpful to close the thread.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 08:15 PM
Can a similar method be used to trigger a flow in Flow Designer?
Thank you