Get Activity Name from Workflow

davide_fais
Tera Expert

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);

....

..

find_real_file.png

6 REPLIES 6

Task number? Workflow activity count? What would that information be used for?


I need to know the wf data structure