How to Execute a Workflow From Another Workflow?
I have a workflow that does some data validation and outputs some rows of data to a result object. I want to take that result object and execute a second separate workflow that accepts that result object as an input parameter. But I can't find any documentation on executing a workflow from a workflow and passing around parameters. Does anyone have any samples showing the way to do this?
Best Answer
-
Are we talking workflows or dataflows here? Workflows have a service task to start another workflow called START WORKFLOW. You can find this in function library when you go to select a service task.
1
Answers
-
You can take your result object of your first workflow (which would be your output dataset) and make it the input dataset of your second workflow. To use these objects as "parameters" against your main dataset in your second workflow, you can set a constant of 1 on both datasets and join on that value. This will make it so your input parameter is repeated on every row of your main dataset. You can then use a filter tile to filter against your parameter.
Hope that make sense.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Hey Mark,
That part makes total sense (how to pass parameters about between workflows). The part thats not clicking for me is how to execute the second workflow from the first. I assume you do it with a code engine package and hit an API but maybe I'm misunderstanding how workflows interact with one another.
0 -
Each workflow has a settings tab which is where you can schedule how it should be kicked off. Your 2nd workflow can be kicked off by when your input dataset is updated. Choosing the Trigger of When Datasets Update and then selecting the appropriate datasets will cause your 2nd dataflow to once any of the selected datasets are updated.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Are we talking workflows or dataflows here? Workflows have a service task to start another workflow called START WORKFLOW. You can find this in function library when you go to select a service task.
1 -
@JosephMeyers - that was it, thanks! I dont know why but I somehow missed 'Start Workflow' when scrolling through the list of service tasks. It was at the very bottom and I guess I didnt scroll far enough. Before that I kept looking in the code engine area and since it wasnt listed there, I figured it wasnt something built in unless I create a function for it myself.
Thanks for the solve. Much appreciated.
0 -
@DomoDork - it also isn't visible until you have a workflow deployed, so it could have been that you simply hadn't deployed your first workflow yet.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive