How to configure automation to invoke startup page / ProjectStarted Event on click of RunAll

We upgraded Pega RPA solution with multiple projects from version 19.1.125 to 22.1.19 , after which, when we try to perform RunALL , the studio launches all the Windows Adaptors added into Project instead of triggering “ProjectStarted” Event first.

Expected behaviour: On click of RunAll**,** “main.pAutomation” file which contains ProjectStarted Event, should be invoked first , post which automation reads the environment details and launches first Window Adaptor.

Could you please guide on how we can define an entry point for project.

@AswathiK16587086 If the adapters (now called Applications) are set to StartOnProjectStart, then they will operate the same as they did in 19.1 and start whenever you start the project. In 22.1, since there is only one project, the event you would use to trigger off of when the project starts is now called ProjectStarted. If you want to start your Applications after the project has started, make sure they are not set to StartOnProjectStart and call the Start method after the ProjectStarted event.