Sub-workflow | Community
Skip to main content
Level 2
November 13, 2023
Solved

Sub-workflow

  • November 13, 2023
  • 1 reply
  • 1753 views

Hi team, 

 

How to use sub workflow? I try to send addition value to sub-workflow and do some testing in sub-workflow. again I am retrieve the output value to main workflow it's possible? If yes please explain. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Manoj_Kumar_

Hello @kumar_27 

 

Sub-workflow is a great activity to reuse the same WF logic across multiple workflows. But it is a bit tricky to use. 

 

Follow these steps to configure it:

  1. Create the complete workflow in a single workflow.
  2. Create the sub-workflow and copy-paste the activities from your main workflow
  3. Add the jump-end and jump-start activities in the sub-workflow.
  4. Now replace the logic that you moved from man workflow with sub-workflow activity.
  5. Then add an enrichment activity after the sub-workflow activity.

Let me know if you face any issues while configuring this.

1 reply

_Manoj_Kumar_
Community Advisor
_Manoj_Kumar_Community AdvisorAccepted solution
Community Advisor
November 13, 2023

Hello @kumar_27 

 

Sub-workflow is a great activity to reuse the same WF logic across multiple workflows. But it is a bit tricky to use. 

 

Follow these steps to configure it:

  1. Create the complete workflow in a single workflow.
  2. Create the sub-workflow and copy-paste the activities from your main workflow
  3. Add the jump-end and jump-start activities in the sub-workflow.
  4. Now replace the logic that you moved from man workflow with sub-workflow activity.
  5. Then add an enrichment activity after the sub-workflow activity.

Let me know if you face any issues while configuring this.

     Manoj     Find me on LinkedIn
Kumar_27Author
Level 2
November 14, 2023

Hi Manoj,

 

 Thanks for Sharing, I am trying this method but I am unable to retrieve value from the sub-workflow to the main workflow. Could you please share any Sample images/Documents for this logic? 

 

My test case:- 

1) I am Creating the main workflow and querying the last month's data. additional data I added Email & first name. 

2) additional value sent to Sub-workflow.

3) Do some tests and update the value in the customs schema then again I am sent back to main workflow. based on the additional data receive from sub-workflow I need update in schema.

 

 

 

_Manoj_Kumar_
Community Advisor
Community Advisor
November 14, 2023

@kumar_27 

 

Did you add the enrichment activity after the sub-workflow activity in your main workflow?

     Manoj     Find me on LinkedIn