 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 debug auto launch flow. So basically we can call auto launch flow with the help of process builder or depicts or lighting component. So in this video, I am demonstrating you like if you don't want to call your auto launch flow from other tools and you just want to debug it. So how you can do that before starting? Let me share you my details. So if you want to follow Salesforce training videos, you can search my name Sanjay Gupta on YouTube. And you can follow my YouTube channel. So here you can find various playlist related to Salesforce and other programming languages. So in my previous video that is available in a playlist related to flow builder. So I demonstrated this example. When deadline date or account is updated, then we need to populate it on close date on related opportunities whose stages other than closed lost or one. So to implement this scenario, I implemented one process builder. So here you can see this process builder is calling the flow of data opportunities, and it is passing account ID and deadline date that is available on account, right? And this is the flow that is implemented in flow builder. And here you can see in the manager, I created two variables. The account ID that is available for input. And another one is deadline date that is also available for input. So these two variables will take input from the process builder. And this process builder will run whenever we create or update the account, right? So let's say you created process builder and flow builder process or flow using process builder and flow builder respectively, but you don't want to update your report directly. You just want to debug this flow. So if you want to directly debug this auto launch flow, then process builder will not fire and without process builder, you won't be able to pass these account ID and deadline dates, right? So now whenever you debug your auto launch flow, then remember that if your process is not passing those values, then you need to manually pass those values, right? So this flow basically do this thing. It populates deadline date on closed date on related opportunities where stages other than closed, lost or won. So if I open this element, so here I am fetching the opportunities. I have a filter criteria, like opportunity should be having account ID equals to this. The stage name should not be equal to close one or close lost. And the data will be stored inside a parts data list. And further with this logic, I am updating all the parts. So we don't need to go in the details of this flow because this is already demonstrated in my previous video. So you can watch that. Now I am just clicking on this debug button. So as I click on this debug button, so another tab will be open and that tab will ask account ID and deadline date, right? So here you can see it is asking for input variables that is account ID and deadline date. So whenever you run your auto launch flow, then this will happen, right? So if you have provided any input variables in your flow, then you need to provide these values. So if you are following your flow through process builder, and you are working through that, then these values will be passed automatically. But now we need to pass these values manually. So I am copying this account ID. And I am pasting it here. And from here I need to populate the close date. So let's say I selected 31st part, right? Now here you can see on related opportunities, stage is prospecting, prospecting and prospecting for three opportunities and two are close lost and close one. So on close lost and close one opportunities, date will not modify, but on prospecting, stage related opportunities, dates will be modified. So right now close date is 315. And here we are passing 313, right? So now I am clicking on run. So now I hope you might have understood how we can pass values while taking input for auto launch flow. If we are not executing it with the help of process builder. So I am clicking on run. So at right hand side you can see. Step by step execution is available here. So you can see here we have fast five opportunities. So five records are available. And three are related to stage other than close lost or close one. So only three are available here, not all five, right? So total five opportunities were there on account, but three are fast because of the stage criteria. And then all other steps are executed and then finally here you can see it is fulfilling the execution. And here if I do a refresh, so you will see this close date is updated to 313. So it is refreshing the page. So here you can see in the related close date is 331. So it is updated for three opportunities and two are as it is because of the stage close lost and close. So friends, if you have implemented any auto launch flow, which is expecting input from any other component, maybe it is process builder or lightning component. So if you are not executing your flow through those components, then you can simply click on debug and you can directly pass the value so that you can test it whether it is working properly or not. Right. So this way you can debug your auto launch flow in Salesforce. I hope you understood whatever I demonstrated in this video. If you want to follow more Salesforce training videos, you can search my name Sanjay Gupta on YouTube and you can follow various playlists which are related to Salesforce and other programming languages. Thank you for watching this video.