Created
August 29, 2018 18:11
-
-
Save nancystodd/5098e86fc55e8c160eaa0e14dad41058 to your computer and use it in GitHub Desktop.
ServiceNow - Get a Workflow by Name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get a Workflow by Name | |
* After dealing with how to find the correct sys_id for a workflow | |
* to use in a script, I found this snippet that made hard coding the | |
* sys_id a thing of the past. | |
*/ | |
var wf = new Workflow(); | |
wfId = wf.getWorkflowFromName('NAME OF WORKFLOW')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment