We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Need Clarification

Abdul
Tera Contributor

I have a requirement where in i need to trigger tasks based on multi row variable set, if there are rows entered, then a task should trigger else it should not how can i do this in workflow?

Please help 

 

thanks 

5 REPLIES 5

Dinesh-SNOW
Tera Contributor

If MRVS has rows (length > 0), create the task; otherwise, do nothing.

  • Workflow: Use a Run Script activity to check current.variables.<MRVS_name>.length.

  • Flow Designer: Use an If condition: multi_row_var_set.count > 0 → create task.