Call subflow into master flow

rmaroti
Tera Contributor

Hi Everyone,

I have below SAM requirement so please help me to create flow designer -

 

- To automate the Device Transfer process through a master flow, so that software licenses are removed from the old device when ownership changes and appropriate tasks are created if necessary.

The Device Transfer Flow should manage the license transition as follows:

  1. Process Start: Triggered when the CI "Assigned to" field changes.
  2. License Removal: The master flow calls the Reusable Old License Removal Subflow with the following parameter:
  3. Subflow Input: Old Device (optional)
  4. Subflow Output:
    • Successful? True/False
    • Software Models of Removed License
  5. Output Check: Evaluate the subflow output.
    • If no licenses were removed: End the flow
    • If licenses were removed: Create an "Uninstall Software" asset task. Include all software model names from the output in the task description
  6. Flow Completion: Once the asset task is created (if required), the flow ends.

-I am confused in passing input in master flow for subflow and what i need to pass the parameter in creating asset task. as mentioned in second point of point no 5 which is Italic font style.

 

-could you please help me and find attached screenshot.

1 ACCEPTED SOLUTION

@rmaroti 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@rmaroti 

you can call subflow, pass inputs to it from your main flow

subflow will give outputs which you can use in main flow

check on this on how it can be done

ServiceNow flow designer Subflow | Subflow demo in ServiceNow | ServiceNow Subflow tips and tricks 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@rmaroti 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader