ServiceNow Learning 85: Can you run an active workflow from your Flow? Super Interesting to know!!

Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

Today I learnt a very informative learning today whether we can the workflow from a flow. 

 

Answer is "YES". ServiceNow allows us to call a workflow from a Flow Designer in ServiceNow.

 

Run a published and active workflow from your flow. You can use the flow data as a workflow input. For example, you can specify the current record as a workflow input.

 

It required three parameters: Workflow, wait and current parameter.

 

Please have a look at the parameter below:

 

 

Inputs

 Input Description
Select a WorkflowPublished and active workflow that you can select to run. The workflow that you select determines the records that are associated with it. If the workflow has inputs, Flow Designer displays them as additional flow inputs.
Note:
  • To prevent the workflow from running outside of Flow Designer, modify it to remove its start conditions.
  • You cannot select a workflow that runs on the Requested Item table. Instead, create a new flow with a Service Catalog trigger.
Wait?Workflow that you set to true so that the flow waits for workflow completion before continuing. Only workflows that wait for completion can return certain output values to the flow. Set to false to continue running the flow separately from the workflow.
Note: If the workflow is canceled or its context record is deleted prior to the workflow finishing, the flow stops waiting and instead continues running.
CurrentCurrent record that the workflow processes. Select a data pill that contains a record from the associated workflow table.

 

Hope it helps.

I hope this article helpful. Please mark it as helpful and bookmark if you like it.

 

Regards,

Shamma

Regards,Shamma Negi
0 REPLIES 0