 Hello everyone, I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate a scenario based on auto-launch. Understand the requirement of this auto-launch flow scenario. So I will be creating two flows, one auto-launch flow and one record trigger flow, and I will be calling auto-launch flow through record trigger flow because auto-launch flow cannot run itself. It needs to be called by any other tool. So in this video, I will demo you how you can call auto-launch flow through record trigger flow. So in record trigger flow, like it will be executing whenever account is created and it will be creating a related contact, then I will be calling the auto-launch flow and it will be creating a related opportunity on the account. So first of all, I'm going to create a new record trigger flow. It will run on account when account is created, then actions and related record and then I'm clicking on done. So here I'm going to create record. So create contact. We need to create one contact and we need to use separate resources and literal values. So contact. Here I am having first name. So dollar record dot name. So I'm keeping account name as first name and account name as last name or maybe like test flow. Last name is test flow. Then here I'm putting account ID so that contact will be linked to the newly created account. So newly created account information will be available in this dollar record variable. So with the help of that, we are like setting these fields. And now I'm clicking on done, clicking on save. So saving it with this name, call auto-launch flow in record trigger flow, click on save. Now I need to create one more flow. And this will be auto-launch flow. So here you can see it is of no trigger like launches when invoked by Apex processes, test API and more. And this auto-launch flow runs in the background. So it needs to be called by some other tool. So here I'm going to create a record. So I'm going to create opportunity, use separate resources and literal values. So this way I provided these values, clicking on done. So this auto-launch flow will be called by record trigger flow. Right. So I am just activating it so that I can pass the values. Now here I'm going to refresh this so that I can call that flow. So I am adding an action. Sorry. I need to select sub-flow action. Selecting this. So this way we can call this sub-flow which we created here. The only drawback is like I can't pass any parameter here as of now. So to overcome this like here, I need to create new resource as a variable. So I'm creating it as record ID. Next available for input. Done. Save as, save, activate. And now I'm refreshing it. Okay. I didn't save that thing. So again, I'm having that sub-flow. So this time you can see here. We have this variable record ID available for input. Right. So we will be using this. So here I need to pass dollar record.id. So that drawback is now resolved with this. Right. So in case of record trigger flow, record information will be automatically available in the dollar record variable. But in case of auto-launch flow, if you want to receive something, so you need to create resources and you need to enable this to get the box available for input. Now that you can use to link. This opportunity with the account. Right. So this way, this auto-launch flow is linked with your record trigger flow and it is receiving the values as well. So I just saved as. And created a new version activated it. Now it is also created. I'm just saving it. I can activate it. If you run this, so you will see like one contact and one opportunity will be created automatically. Right. So just activate and test it. So this way, I hope you understood like how we can create auto-launch flow and how we can call it through record trigger flow. I also demoed you like how we can receive input from record trigger flow into auto-launch flow through that resource.