I have 3 bots in one table. The Bot "Create PDF" is executed when clicking a button, so I control when to trigger it
The others 2 bots are executed when the table is updated. Both bots have different conditions to fire them. The order of execution is Bot 2 and then Bot 1, but I want to execute Bot 1 first and then Bot 2. Is it possible to setup the order?
Solved! Go to Solution.
You could make another bot, the master coordinator, that runs the others in sequence.
Here's how:
The effect will be that they run in sequence, one after another. You could even get fancy and include some branching steps, if you wanted to check for certain things and execute conditional steps. 💪
Hope it helps!
The app is not deployed.
The only way I have found to do this is to disable/delete Bot 2 and create it again. This way it executes after Bot 1.
Is there another way to do this?
You could make another bot, the master coordinator, that runs the others in sequence.
Here's how:
The effect will be that they run in sequence, one after another. You could even get fancy and include some branching steps, if you wanted to check for certain things and execute conditional steps. 💪
Hope it helps!
Hello Matt. I'll follow the steps.
Thanks,
@MultiTech I made the 2 processes resusable, created a Master Bot and added those 2 processes in each step in the order shown here.
I have some questions.
I got this.
I looked for information about this and this is what I found.
When I save, I see no errors or warnings, so I guess that completion of the "Add" and "Lookup" is optional. What else do I have to do here?
You'll want to do the "Lookup" option
This essentially says to the system:
I did it.
Now I have 3 bots: Bot 1, Bot 2 and the Master Bot.
The Master Bot is the only one that must work. If all 3 bots are enabled, how do I tell it to AppSheet? Do I have to disable Bot 1 and Bot 2?
Automation has been made extremely modular, so that you can reuse the individual bits and pieces that make up the whole bot. This includes:
What you're doing here is reusing the process portion of the bot.
You should be able to actually delete the other bots.
Another way of going about this might be:
Ok. I get it.
I disabled bot 1 and 2 and tested the "Master Bot" and it's working.
Thank you for all your help.
Your welcome! (^_^)
I have just one comment. Since Bot 1 has a condition different from Bot 2 (conditions for firing each bot), it seems that only the condition of Bot 1 is the one that is applied in the Master Bot, but there's no doubt that this is a solution that works when I want the bots to be executed in a specific order as long as the bots have the same condition to fire the Master Bot.
I learn a lot from these posts. I appreciate the help received!
@maretec wrote:
Since Bot 1 has a condition different from Bot 2 (conditions for firing each bot), it seems that only the condition of Bot 1 is the one that is applied in the Master Bot, but there's no doubt that this is a solution that works when I want the bots to be executed in a specific order as long as the bots have the same condition to fire the Master Bot.
Technically what's happening here is you're reusing the "PROCESS" from the bot - not the bot.
If you wanted to include your condition in your master bot, try this:
Now when the bot is triggered, it will check for each of the conditions in sequence - kicking off whichever (or both) that apply.
It seems that you have a workaround for every issue. 😊
Your suggestion sounds good! 👍 I'll try it.
User | Count |
---|---|
15 | |
12 | |
9 | |
8 | |
4 |