 Hello friends. I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate how you can call Autolunch Flow through process using process builder. So in this video, I'm going to tell you how you can create Autolunch Flow. Then we will call that Autolunch Flow using process with help of process builder. Before starting, if you want to watch Salesforce training videos, you can search my name Sanjay Gupta on YouTube and you can follow my YouTube channel. So now let me first create Autolunch Flow. Before creating Autolunch Flow, let's take a look on email alert and email template. So I'm going to use this email alert, email alert to contact. So we are going to send an email whenever we create a contact record. So whenever a contact record is created, we need to send an email alert. So this is the email alert recipient will be the email field that is available on the contact record. This is the email template for contact email alerts. So here it is, it is, it's text, so it will throw this message like high contact name, then congratulations. You are registered with our company. Thanks for registration. So this is the email template, then this is email alert. Now we have to use this email alert in flow so that this email can be triggered and then that flow will be called through process builder and that process will be executing when record on contact will be created. Right. So now I'm going to create a flow first. So here I need to select Autolunch Flow. So remember that there are two types of flow, screen flow and auto launch flow. So you can select only auto launch flow if you want to execute it with help of process builder. So I selected create then in elements you can click action and drag and drop it from here you need to select type and from here you can select email alert. Now we need to select or search this email alert to contacts in this flow. So here it is. Now we need to provide its label. So email alert. Then here we need to put the record ID. So this record ID will be off that record that we are going to create. So this flow requires this record ID so that email field can be identified. So we need to create a variable named as record ID. It's type is text and it is available for input. So its input will be provided by the process that we are going to create in process builder. So this way you can see I created email alert. So this email alert will be working for contact because it is created for contact field. And now we need to link this flow with process. So I'm going to save this email alert flow, its name. I'm saving this, activating this. Moving to process builder. So here this process is on contact object. It will execute when a record is created. Now we need to enter criteria. So I wanted to run always. So no condition. So whenever a count record will be created, it will execute. Now I need to add action. So from here I need to search flow. So here you can see it is showing the name as send email flow. No, we need to refresh this page. So whenever you are creating new flow and you are going to use this in any feature, so you need to refresh that so that it will be available there. Now I'm going to add action. So our flow name is email alert flow, right? So now here it is available email alert flow and action name is call flow. Now here you can see it is showing set flow variables. So from here you can pass values to flow. Click on add variables. So in flow we have a variable record ID. Now we need to set it with the contact record ID so that you can search here. Contact ID choose so contact record that is going to be created. It's ID will be passed to record ID variable that is available in flow and I'm clicking on save. So this way this process is also ready. So I'm activating it. So now understand the process again. So first I'm going to create a contact record. Then this process will be executed. This process is calling a flow. Then flow is calling an email alert and email alert is associated with the email template. So this way four entities are working here. Process builder, auto launch flow, email alert and email templates, right? So now flow is activated and process is also active. Now I'm going to create new contact record. So its name is flow. First name is auto launch and last name is flow and then I need to put email. So this is important because I use this email field and email alert. So if it is filled then only email will be sent. So now I'm clicking on save. So here you can see auto launch flow record is created. Right now I'm moving to my mailbox. So here you can see an email is available. So hi. This is auto launch is first name, flow is last name and rest of the message is available here. So this I showed you it is available in my email template. This email template is used by this email alert. This email alert we are using in this email alert that is in flow, right? Then this record ID is receiving value from here from process. So it is receiving contact ID. So record ID is having contact ID and this process is executing whenever we are creating contact record. So this way you can call auto launch flow through process using process builder. So I hope you understood whatever I demonstrated. If you want to watch more Salesforce training videos, you can search my name Sanjay Gupta on YouTube and you can follow my YouTube channel. So on my channel biggest playlists are available related to Salesforce so you can watch them and learn Salesforce. Thank you for watching this video.