 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 schedule triggered flow. Let's understand the requirement of schedule trigger flow scenario. So we need to update lead records on daily basis. So, for example, in an organization on daily basis lead records are created. We need to check lead source field on the lead records. If lead source is VAB, then we need to put the website URL that is studysalesforce.com in the website field that is available on the lead object. So let's jump into org and I'm going to show you leads first. So here we have a variety of leads. So I'm just selecting all open leads list view. So here I'm going to change the list view field selection. So I'm going to select the lead source field and the website field. I'm just removing owner alias state province. And I'm clicking on save. So here you can see lead source is visible. So for four leads right now lead sources VAB. Sorry, five lead records are having lead sources as VAB. Now here website field is blank for all. So what we need to do, we need to create a schedule triggered flow so that on daily basis, whatever leads are there where lead sources VAB, so they will be populated with the website name in the website field. So I'm going to create new flow. So from here I'm selecting schedule triggered flow. So here we need to set the schedule right so frequency I need to select daily date and time. What we can do just open any record and go to details and modify particular field with a value and save it. So this I'm demonstrating for demo purpose like generally like you should know the current date and time of the all. If you don't know so you can just do this quick track like you can update or you can create any record so that you can have the last modified date and time. So here you can see we have last modified date and time. So date is 47 and time is 10 8 so I need to schedule basis on this right. So here I'm selecting date as 4th July and time is 10 8 so I'm taking. So it is 10 8 p.m. so I'm taking 10 15 p.m. as of now clicked on done. Now here if you want to choose object and you want to specify the condition so you can. So we can just specify the condition as lead source equals VAB right so if this condition satisfy then only it will work. I clicked on done. So I need to click on plus. I'm selecting update records so update leads specify the condition select the object. Then here we can again select the condition so that condition was optional if you don't select the entry condition then you can put condition here as well. And we need to put the website name so here I'm putting studies salesforce.com and clicking on done. So this way my record sorry schedule triggered flow is created. Now I need to click on save and once I activate this flow so it will be scheduled automatically. So here is the warning update leads the update leads update record element in this flow can cause performance issue. At runtime the flow starts an interview for for each record specified in the start element and stores each lead in the dollar record global variable. Check whether the update leads element is still necessary or add a filter so that the element accesses only the lead in the dollar record global variable. So what we can do instead of using this particular thing, we can choose this as well because the records which will be selected the information will be available in this dollar record global variable. So what we can do, we can select website. So this way also we can do because we already specified the entry condition and the condition so basis on that record will be selected and they will be available in this dollar record. So that record will be updated with this website. So I'm saving it again and activating it. So as I activated it so I need to go here and search for scheduled jobs. So this option you need to open and here you will find one entry. So here you can see we have this entry update leads and one one is the version so version is one. So that's why it is available and submitted by username then submitted date and time. So it was submitted at 1011 and we scheduled it for 1015. So next schedule run is 1015. So after four minutes it will be executed. And here you will see the started and for next schedule run it will automatically convert with 752022 right because we selected it to run on daily basis. Right. And after successful execution, we just need to go here on the leads. We need to select the list view all open leads and you will see these fields like for the records where lead sources web so this website field will be filled automatically. Okay, so this way this flow is created so I'm just waiting so that it can execute and I can show you whether the parts are updated or not. Okay, so since we applied this entry condition that's why we don't need to put condition here because the selected reports will be updated automatically. If you don't specify the condition in the entry then you can choose this third option and you can specify the condition here as well. So I'm moving here and doing a refresh so that I can see whether it is executed or not. So still there is some time. So we just need to wait for a couple of more minutes so that it will be updated website field will be updated on the lead records so you can check by refreshing this page as well. Still it is not updated. So whatever flow you will be scheduling the information you can find under this schedule jobs. Right. So here we have alphabets as well if you want to search your flow alphabetically so you can just click on particular alphabet so that it can be viewed and later on like at any point of time if you don't want to run your schedule or triggered flow. So from here you can just delete this entry so that it won't be executed anymore. So still it is having some time. So let's do one more refresh. So I hope this time it got executed so here you can see started at 1015 next schedule run is for next day like date is five. Time is same date will change. Now if I go here and do a refresh. So you will see website field will be having some value so wherever lead sources that so there you can see website field is filled with study Salesforce. So this way you can schedule your automation with the help of schedule triggered flow. I hope you understood like for this requirement how I configured this schedule triggered flow. Now, at any point of time if you don't want this so you can just delete this entry so the scheduled entries deleted. Now if you want to reschedulate so you just need to save as or deactivate it and then activate so that it will be rescheduled automatically.