Get Activity Name from Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2017 04:14 AM
Hi ServiceNow Team,
I'd would get Activity Name from Workflow:
I've a workflow on sc_req_item table, and I'd get by script only names of activity Catalog Task:
This screenshot is my Workflow called "Workflow_test". For this workflow, I'd extract all Activity name of "catalog task":
workflow name: "Workflow_Test"
workflow tasks name: "Task Test 1", "Task Test 2", "Task Test 3"
An possibile query could start:
var wf = new GlideRecord('wf_workflow');
wf.get.(sys_id);
....
..
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2017 08:57 PM
Task number? Workflow activity count? What would that information be used for?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2017 05:05 AM
I need to know the wf data structure