Executing Automation's in order

I am having a hard time trying to figure out how to start automations in order when called to start. Currently I can only get the autoamtion to start if the property StartOnOrojectStart is set to True. I have multiple automation files in a single project. What I am wanting to do when the project runs is to have a specific automation file start initially and based on certain conditions call another automation file. I have an automation file called “ExcelLoop.os” this file loops through an excel file and stores values as global variables so that they can be passed to another automation file that then usus the global vairables to fill in form data on a webpage and download a report. Currently I can only get the “ExcelLoop.os” file to start on a button click (Which I would prefer to not have start on click..) and then at the bottom of this file I want to call “AutomationRPT00754.os”.

Currently I have the web adapter and “AutomationRPT00754.os” set to StartOnProjectStart = True and they all start at the same time and the variables from the excel loop end up not getting to the “AutomationRPT00754.os” file in time.

What is the proper way to start an automation file when calling for another automation file to execute?

I have tried setting the web adapter and “AutomationRPT00754.os” to false but I am getting the followin errors.

@ZachT124 On the Runtime tab in the Toolbox are static methods and events that can help you here. Use the AllProjectsStarted event to kick off something that you want to happen once all of your projects in your solution have started and are loaded. I would not use the Started event for an automation as that doesn’t tell you that everything that it might call is ready. Similarly, if you want to do something whenever your adapter is started, you can do that, just be sure that you are only operating on the adapter.

If you have identified that you are starting the automation too early (an easy way to do this is to simply disconnect it from your startup and trigger it with a button click), then using the AllProjectsStarted event to kick things off should work for you.

@ThomasSasnett I am still struggleing to get the automations to run in order. I will be setting this project to run RPA on our server. I have all of the automations that I am wanting to run set to StartOnProjectStart = True. I have set the other automation files that I do not want to run to not run. I have entry points in each file. I want the following files to run in order. I want to start with my ExcelLoop.os to get all of the variables and then call AutomationRPT00302-Option A.os when the file is downloaded I am then using an execute method to call a file called AutomationMoveFile.os that looks for the last excel file in my downloads and then copys and renames the file. Can you show me an example of what I need to call at the beggining and ends of my files to achive this?

@ZachT124 I was able to get the automation files to run in order. I started my first file with Runtime ProjectStarted and then added entry and exit points to each file that I called.