 Hello, hi everyone. I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. So today is the day 30 of this Salesforce learning bootcamp and in this session we are going to discuss about schedule triggered flow and auto launch flow. So both are very simple and maybe this session will be short because these two flows are very simple. So I hope everybody is safe and doing good and you are learning Salesforce quite well and I can see like channel is growing, more people are joining and learning. I can see people are discussing doubts on Telegram group as well. It is also growing day by day. So I'm happy I'm able to create a community where people are really learning Salesforce and preparing themselves for jobs and those who are already in jobs, so they might be learning new concepts so that they can strengthen their skills and will be able to do more on projects. So with this note, I'm going to start today's session. So as you can see, we will be discussing about two different flows today. So let's move ahead and those who have joined for the first time this bootcamp, so you can just go through my profile. So I have total 16 years of experience and having total six certification and after having this much knowledge along with you, I'm also learning new things so that I can share those knowledge with you. So daily on daily basis, I learn something new. So preparing those content for you and I also follow all these learning practices like whenever I prepare something so I take proper notes and later on those notes I convert into slides those I'm using to deliver the sessions for you and I prepare some practice exercises because of that in this bootcamp I'm able to give you day-wise exercises and I just created a document for project as well. So that project idea I like implemented in such a way so that all the features related to Salesforce can be covered through a single end-to-end use case. So that's why I just designed the document and if we move ahead so today also I will be explaining the topic and will give you the demonstration then we'll do Q&A session and I can see lots of people are appreciating this Q&A session because in Q&A you get to know different questions what can be the doubt. So if doubt is not available in your mind and if you read someone else's question so you will also think in the same way and you will try to figure out the answer. So this way this Q&A session is helping people to learn more and I can see many folks are utilizing YouTube comments and they are utilizing this Salesforce group as well. So just try to involve instead of asking questions try to answer them as well. So if you answer them then that community will be strong and whenever you will be asking questions so someone will be answer as well. Okay so like we are about to complete week 8 so tomorrow I will be taking one more session which will also be quick and in that session I will be explaining all the best practices and will be explaining platform event required flow which is very simple and as you all know like everywhere on all social media channels where my channel is available. So I just announced Apex sessions will be starting from 20th March. So from next week Monday we'll be starting Apex and people are asking like will I be explaining Apex from the beginning. So answer is yes I will be explaining Apex from the very beginning. So those who are beginners if you don't have any coding background still I will be able to explain in such a way so that you can just relate the thing and if you do day by day practice with me so you will be able to understand those topics. So maybe I need to redesign this timeline so I will be doing that from Monday. I think I just need to explain Apex for at least two weeks because then only I can go in the depth and just share this channel link with everybody. So I would prefer to share the channel link as well as the telegram link because in these two mediums I am sharing lots of information and if you follow me on LinkedIn so there also I am sharing all the PDFs and other related stuff. Okay so let's move ahead and start our today's session to understand how Schedule Triggered Flow works. So till now we understood how ScreenFlow works, we understood how Record Triggered Flow works. So if you want to understand this scenario like how Schedule Triggered Flow works so basically ScreenFlow and Record Triggered Flow works for the new record or if you want to update any existing record so you just need to update something on the record or you might be deleting some record but there may be scenarios like you are not creating new record you are not updating any existing record you are not deleting any existing record still you want to perform certain operations right you are not doing anything with the record still you want to do certain operations so in that case we will be utilizing the functionality of Schedule Triggered Flow right so basically Schedule Triggered Flow works on the existing records only at a certain date and time right so I have two scenarios with the help of these two scenarios I will try to explain how you can implement Schedule Triggered Flow so that you can do some operations on particular records at a specified date and time right so our first scenario is we need to update all leads so leads means all the lead object records where lead source is VAP what we need to do we need to update the website field so we will be checking whether website field is available if it is not available you can create it as a custom field and we will be storing this website study salesforce.com into that field so wherever all the existing leads where lead sources were so on those lead records we just need to store this website name right so this is the requirement and that we need to do on existing records right so you can take this example in such a way for example you are running a business and on daily basis you are creating some lead records and at the end of day let's say on midnight every day midnight you want to check whether lead lead sources VAP for most of the leads if it is VAP so like you are using particular website for lead generation so you can just store that website name on all the records so this way on all existing records you can do some modification with the help of Schedule Triggered Flow and you don't need to run it manually every day it will be executed automatically as you you will be applying that schedule on like what time it will be executing and what frequency you want to apply right so I'm just jumping to the org and I'm going to implement the flow for you so here you can see this flow UI is already available so I'm just clicking on new flow so two types of flow we already understood and I hope you have done lots of practice so that now you can consider yourself export in those two types now we are picking this third type which is Schedule Triggered Flow so here you can see it shows launches at a specified time and frequency for each record in a batch this auto launched flow runs in the background right so I'm just creating it so here you can see this is the UI for the Schedule Triggered Flow and here we have two options we need to set the schedule that is required and we need to choose the object that is optional so optionally if you want to apply some condition so you can do that as well so I'm just selecting set schedule so here you can see we need to set the start date and start time and then we have frequency now you just need to check the org date and time current date and time right so as you all know all the orgs are having by default pst time zone so what I'm going to do I'm going to open any record and I'm going to modify that record so that I can see last modified date and time so here I'm just writing test and clicking on save so if you if you go to last modified by so here you can see we have org current date and time so it is 16 three and time is 8 10 a.m so I'm going to utilize this time so date is 16 three and time is 8 10 so I'm scheduling it for let's say 8 20 because I will be taking at least 10 minutes to explain the concept so right now it is 8 10 I am scheduling it for 8 20 and here we have three frequency once it means it will run only once daily means at particular time so we are starting on 16 miles so every day it will be running at 8 20 a.m so you can select daily and if you want to run once in a week so you can select weekly so these options are available as per your requirement you can select the option okay so let's say I'm selecting weekly and clicking on done so this way I just set the schedule for this flow now here you can see we have object as well and here you can apply the condition for that particular record for which you are going to run this flow so let's say I'm selecting lead and here you can search for lead source if it is equals to web then that particular record will be considered for this flow okay so I'm just clicking on done now here you can see all those elements are available which we saw in screen flow and record triggered flow so we have action we have sub flow assignment decision pause loop all these options are available create record update record get record delete record so basically we need to update the record right so I am writing update leads now here you can use this condition to identify the record so you can just write lead or you can use this global record variable as well because we applied the condition in the beginning so what you can do you can just apply a lead source no not lead source you will be applying web sorry website equals to and here you can write study salesforce.com and in entry condition if you have not applied the criteria so in that case you can just select this fourth option where you can explicitly apply the conditions right so this way I'm just clicking on done and I'm just going to save it so this flow is saved and if I click on activate so it will be activated and at particular time it will be working okay so I'm just clicking on activate now moving here and I'm searching for schedule jobs so I just searched for schedule jobs and here you can see this flow is basically scheduled right so schedule flow on lead one is showing version number submitted by submitted date and time you can see it is submitted on 813 and specified time is 820 so 820 here you can see next schedule run is 820 so on 820 it will be starting at its execution so once it is executed so this started date and time will be available here and it will be giving next week's schedule right so after seven days it will be running again so this way it is available here so whenever you create any schedule triggered flow and you activate it so you just need to search for this option schedule jobs and there you will find one entry and anytime if you want to remove this entry you can just delete it so if you delete your schedule flow will not be executing right now let's jump on the leads object and on that on that object we will be just configuring the list view so that we can see all the data so here we have leads object under the sales application now if I go to all open leads so here you can see all the data is available now here I am going to add one field select field to display and I am just selecting website so it will be available here and I am going to select lead source as well okay and few fields I am just removing those we don't want to see and I am going to select last modified date as well and clicking on save so this way you can see this list view is modified so here we have lead source we have last modified date we have website so right now website is blank okay so once our flow is executed so you will see this website will be filled for the lead source wherever it is web and last modified date will be also modified so for all though all these records you can see last modified date is date and time is same but the records which will be modified for them last modified date and time will be modified okay so we just need to wait for a few minutes then this flow will be executed right and we'll be checking it so you you can just refresh it so still it is not started so we just need to wait till the time I can just see a few questions here so I'm just going to answer so Rituraj is asking should we known Java for apex so if you know that will be better otherwise I will be covering all the basic concepts that you need to know so no need to worry so Emya if you are from non-tech background if you can go through with java fundamental so in our sheet you can see I have already mentioned my java video playlist so these videos are created by me so if you click on this link you will have complete playlist so just see all the beginner videos quickly so that you can have a basic understanding of java so that whenever I utilize those terms and apex you will be kind of revising those right so you can you can just go through with this playlist so that you can understand those concepts yes Janki so classes time will be same I'm not changing so Siva for this first radio we can use trigger for sure but you will be like anyhow you need to schedule it because our requirement is it should run automatically every day or weekly so that's why we need schedule thing so in apex also we have scheduled apex so we'll see when we'll be learning about schedule apex so she tell you can just check or date and time through company information so there you will find or otherwise you can just modify particular record so that will give you that data so if you open any record just modify that record and see that record last modified date and time so you will get to know so Nikhil 820 because the org is having PST time zone so in PST time zone this time is so puja yeah it is little bit similar to batch class but it is you can say batch class which is scheduled so scheduled batch class you can say for schedule triggered flow yes anti we cannot stop it if like if you delete then only you will be able to stop otherwise not yes such in we can just use best like point and click so I think you are answering to Siva so yes for us it is running as bulkified so Janki this excel sheet link is available in the description of each video which is related to this live bootcamp so if you if you go to the description it will be available there or maybe if you join the telegram group they are also it is pinned so everywhere all the links are shared you can just access yes if you log out still it will work so it runs in the background so if you log out still your org is activated so it will work so now what I'm going to do I'm going to refresh this so here you can see for few records website name is available so it is my own website study salesforce.com where also you can just find some video links and wherever lead sources were there only you can see this website name is available and date and time is changed for only those records which are updated right so this way we just verified records are updated now let's jump here and here you can see started started is blank so I'm just going to refresh so you will see this started will be filled with this date and time and next schedule run will be for 23rd March so I'm just refreshing this page and you will see the change and when you will be implementing so you will experience the same so here you can see started is 16 three and next schedule run is 23rd March so this way if you schedule weekly so weekly cadence will be available here if you schedule for daily so it will run on daily basis and if you log out still it will run in the background so this was a nice question Ritu Raj thank you for asking this question okay so I hope everybody understood this first scenario how to implement it with the help of schedule triggered flow now we are going to create another scenario so it is also interesting and here what we need to do we need to create a reminder task on opportunity where opportunity is open okay so if opportunity stays is other than closed one or closed lost then we need to create a reminder task on that opportunity and that reminder task should be created only once okay so we need to maintain that as well so for that purpose I am just going to create a checkbox on opportunity so that we can make sure whether reminder task is created through flow or not so initially that checkbox field will be false and whenever task will be created so flow will be updating that opportunity checkbox field like task is created okay so just moving to object manager and here I am going to search for opportunity so on opportunity I am going to create a field so that field type will be checkbox okay so from here I am selecting checkbox clicking on next so here a field label will be task created initially it will be unchecked so whenever task will be created through flow then through flow we will be checking this checkbox as true and I am clicking on next and visible to all the profiles and generally these kind of fields those we use for controlling flows so if you don't want to drop them on page layout so you can just uncheck all the page layouts because if you place it on layout so it doesn't make any sense so you can just uncheck and click on save but if you place on layout then also it is fine so it depends on the requirement so I just created that field now I am moving to create the flow so on home I am searching for flows so I am just clicking on new flow so that I can create schedule flow so I am just clicking on schedule triggered flow clicking on create now here we need to set the schedule so we already know all current date is 16 and time we set as 8 20 so right now I am setting it as 8 30 or 35 because we will be taking some time to implement it so let's take 8 30 okay and this time frequency I am selecting as daily and clicking on done okay now here we need to specify the object and the condition so here condition will be like stage name should not be equals to closed one then stays name should not be equals to closed lost right so if stays name is other than closed one or closed lost then only those records will be queried and we just need to check the field task created it should be it should be is null false so if it is not null then only no it should be blank so is null true so if that checkbox is null then only task will be created for that opportunity right so these are the conditions now these first and second condition we just need to set as custom logic so here I am setting it as or because from one and two if anyone is true right so if anyone is true then your flow should run so one or two like if your stage is not equals to closed one or it is not equals to closed lost then it will be running and here we are setting third like it should be null okay so I am just clicking on done so here what we need to do we need to create a record so that record we will be creating for tasks so create task and we need to create one record use separate resources and literal values and here we will be selecting task object because we need to create that now here you just need to map the values as per the requirement of task so it will take some time to create that mapping so just go to task and here you can see we have tasks so if if we create new task let me just try to create okay let me move to opportunity and under opportunity I will try to create new task so if I try to create new tasks so these are the fields we need to set subject due date then related to assigned to and status right so here first of all I am searching for subject so follow up on opportunity then I am adding one more field so here due date so here I am going to create new resource as formula and in this formula I will be like date or maybe future date so here I am going to insert a formula today and today plus seven so due date will be having today plus seven days so after seven days date will be stored there so I am clicking on done so this formula is available here which will be stored in that due date then next what we need to assign status and assigned it to and related to okay so status we can have not started then assigned it to ID so here we can have record dot owner ID so whoever is the owner of that opportunity that owner will be assigned with that newly created task right then here related to so related to is actually what ID so what ID we are going to assign dollar record ID the opportunity ID right so that task that we are going to create it will be related to that opportunity automatically okay and if you want to store that newly created task into a variable so you can but I'm unchecked okay I'm not checking it it is by default checked so if you want to create that variable you can otherwise you can leave it as is so now I'm just clicking on done so this way this create task element is created now after creation of this task we just need to modify the checkbox task created checkbox as true so that whenever this flow will be running on daily basis so for one opportunity it will be creating task only once so here what we can do we can select update record so we need to update opportunity and we need to update the opportunity that is available under this dollar record global variable so you can just check this checkbox and here you can set task created as true right so that particular record for this for whatever record this flow is running so that particular records this task created checkbox will be set as true and so let's say today this flow executed and next day this flow will run again so for next day on those opportunities the flow already executed today so tomorrow on those opportunities that flow won't be working this is important that's why we just created that checkbox right so I'm just going to save it so I just saved it and I'm activating it now I'm going here on scheduled okay so here I'm going to search for scheduled jobs so here you can see okay submitted at 830 and it will run tomorrow actually all time is right now 831 and we set as 830 so today it won't be running so in this case what you can do just delete it right so it is deleted now what you need to do just go here and change the time so I'm selecting it as 835 so you can just manually modify this so here we have some time slots if you don't prefer that time slot you can just manually modify that as well so I'm just modifying it to 835 clicking on done save as creating new version and activating it if I go here and refresh the page so you will see a new entry so here you can see it is initiated as 832 next schedule run is 835 so now it will run today and it will create next schedule run for tomorrow because we selected on daily and if I go here so you can see on this opportunity details this opportunity stage is prospecting and here under activity we don't have any task so when that flow will be running so this opportunity record will be having a new task created okay so we just need to wait for three more minutes and then it will be executed so there are lots of questions available so I will be taking them at the end because it will break the sequence so I'm just waiting for a few minutes I think couple of minutes more we just need to wait so I just refreshed still it is not executed so let's wait for couple of more minutes so if you have questions so you can just write it in the chat I will pick at the end of the session so I'm just refreshing it again still it is not executed so I'm just waiting so I'm going to refresh it one more time still we need to wait for I guess one more minute so then it will be executing and if you are on system so with me you can also try and implement this so that immediately you will be able to practice as well and you will see in the practice sheet exercise sheet I just added few flows so we have two schedule triggered flow then we have record triggered and auto launch flow combination then here we have all three schedule triggered flow so lots of schedule triggered flows scenarios are available so you can just practice them references are also available I hope these reference or recorded videos are helping you as well to learn Salesforce okay so again I'm moving here and doing a refresh let's see I hope this time it will execute yes it is executed so here you can see execution started at 8.35 today and tomorrow is next schedule run because we selected daily schedule frequency and if I go here so I hope I will see a newly created task so here it is follow up on opportunity right so if you go to the opportunity and if you open any opportunity you will see that follow up task right so this way you can just verify on the opportunities whether it is created or not okay so this way we just created this now with the help of this demonstration I hope you understood the basic idea behind this schedule triggered flow so these two examples I already demoed and these two you can these three you can practice and if you see any doubt you can just go through the recording and you will be able to understand for sure okay so now we need to understand this auto launch flow as well so for auto launch flow I have a scenario so basically this auto launch flow cannot run itself so it is like you need an engine through that it can be launched so if you read this scenario so it says upon creation of account we need to create a related contact through record triggered flow and related opportunity through auto launch flow but you already know auto launch flow cannot be executed or initiated automatically we need to call it through any other feature so we will be calling that auto launch flow through record triggered flow right so it will be called as a sub flow now after implementation I will show you like what is the actual benefit of implementing auto launch flow so there is one requirement like if you want to run your flow in particular user context so that you can do through auto launch flow only so whenever you are creating your record triggered flow and a particular piece of flow you want to run as let's say system context or system admin context so that piece you can implement with the help of auto launch flow and that auto launch flow you can just call in your record triggered flow as a sub flow right so this way it will be helpful so now I'm going to create that so here I'm moving and searching for flows okay so first I'm going to create auto launch flow and then I will be creating record triggered flow so here you can see we have this fourth option that is auto launch flow no trigger so it launches when invoked by apex processes rest api and more so here already it is written like you need to call this flow through any other feature so we will be calling it through record triggered flow and apex and rest api when we will be learning about the programming coding stuff so then we'll understand like how we can link our flows with apex as well so if you go to my website study Salesforce so here lots of scenarios are already available like integrate code with flow so right now I have not explained apex so when we'll be doing apex session so after learning apex it will be better to integrate apex and flows together right so we'll see some scenarios like how we can link our flow and apex programming and flows can be connected with your lightning web components aura as well so we'll see that as well in the custom development part so right now I'm selecting auto launch flow from here and clicking on create so here you can see we have nothing to configure right we can just implement some elements and this auto launch flow will be called by any other flow and through that flow we just need to link it so here in the requirement you can see through auto launch flow we need to create related opportunity so I'm just having create record element so create opportunity and here use separate resources then OPP so I'm just giving you a small demonstration so that you understand how we can link auto launch flow through record record flow so here we need to set the name so here I'm setting name as test opportunity then we need to set the close date so for that I'm going to create a formula sorry not variable a formula so I'm naming it as future date so I will be having a function as today and here I'm setting today plus seven so that future date will be available and clicking on done now add fields so okay so I'm just selecting the stage field from here and if I click here so I'm selecting prospecting as the stage right so now I'm clicking on done so this way this create opportunity create record element is available here to use now what I need to do I need to link this opportunity with the account as well so for that I need account ID so here we don't have any dollar record variable that global variable so what we need to do we we just need to create a variable here right so I will be creating a variable that that should be named as record ID and that record ID variable we will be using here to link the opportunity right so I hope you know like how we can create record ID because in screen flow we already created a record ID as a variable so that we will be using here as well so I'm just clicking at top left corner and creating new resource and here I'm creating a variable and that variable API name will be record ID data type will be text and it will be available for input because this variable will be receiving input from any other flow so that's why I'm enabling it as true clicking on done so this way this record ID variable is created now if I open this element again so here I can add the field and I'm just writing sorry here I'm writing account ID and account ID will be equals to record ID okay so this way it is linked now I'm just clicking on done so this flow is created so it is auto launch flow and I'm just saving it so create opportunity auto launch flow now if you click on this show advanced so here you will see how to run the flow so here we have these options like you can run your flow in user or system context system context with sharing and system context without sharing right so these three options are available with sharing means enforce record level access the data security which we already gone through if you select third option system context without sharing so you can just access all the data so these three options are available in this flow only if you open any record triggered flow there you won't be able to have these options right so if you want to run flow in these three contexts then you can just implement auto launch flow and you can implement that functionality and that auto launch flow you can call in the record triggered flow right so this is the type which is already available here okay so now I'm just going to save it and I'm activating it now I need to create one more flow that will be a record triggered flow where I will be calling it so in this record triggered flow I'm going to set account as object because I will be creating account and then it will be running so on create of account it will run and here I'm not setting any entry condition selecting actions and related records clicking on done now here I'm going to select create records because I need to create account as well if you read this requirement so it says upon creation of account we need to create a related contact through record triggered flow and related opportunity through auto launch flow so auto launch flow I configured now I'm creating record triggered flow where I will be creating contact and will be calling this auto launch flow as well so here I'm writing create contact so object I'm selecting as contact and under contact we have first name so I'm setting that so flow fn first name then last name flow last name then we need to set account id so that it will be related to account so here I'm setting record dot id right so that account id will be linked here and I'm clicking on done so this way contact will be created now what we need to do we need to call that auto launch flow so here you can just click on subflow and here you can search that auto launch flow so you can see we have create opportunity auto launch flow so auto launch flow you can call in the record triggered flow so here you can write call subflow and if you remember in auto launch flow we created the record id variable which expects some input so just enable it and here you can pass record dot id as input that is account id so this account id which is available in record dot id that will be passed as input to that record id variable which we created in auto launch flow here so I'm just clicking on done so this way it is connected right now if I try to save it so create contact and opportunity with auto launch flow and if I click on show advanced so here you can see we don't have that option that we saw here under auto launch flow if I take you here so here we have this option how to run the flow right so this option is not available with record triggered flow here we have directly type and other features right so record triggered flow you cannot run in system context but auto launch flow you can run so sometimes there is a business requirement like if you are running your flow with non-system admin user and a particular piece of that flow you want to run as a system admin so what you can do that that minor implementation you can do with auto launch flow and under auto launch flow you can just select this system context with sharing or without sharing and this auto launch flow you can call as a sub flow in that record triggered flow so this is a workaround like how you can run particular piece of flow as a system administrator right so this way this flow is implemented I'm just saving it and if I activate it and whenever I will be creating any account so through this flow a contact and opportunity will be created right but make sure before running this flow go to flow trigger explorer select account and record is created so here you will see lots of flows so we already have create opportunity on account so you just need to deactivate it right because it will be creating one opportunity so we have duplicate check we have record triggered flow yeah it is not creating so this is creating opportunity and if you have any other flow which is creating contact so you need to deactivate that as well okay so just open this flow flow details and versions so here we have so you can just deactivate right so now it is inactive so in my org I only have one flow which is creating opportunity this one we created right now which will be creating contact and opportunity so I just want to run this flow and I don't want to create contact and opportunity through any other flow so that's why I deactivated it now you can see the use of this flow trigger explorer you through here through this record trigger explorer you can just maintain which flow you want to activate or which you want to deactivate so if you click here flow details and versions so everything you will be seeing here automatically right now our one flow is active so what I can do I can go here and create an account and upon account creation a new contact and opportunity will be created automatically so I just need to populate active so I am selecting yes clicking on save so account is getting created and under related you can see a contact is created contact name is first fn flow like flow fn flow allen that we provided and opportunity name is test opportunity that we provided so this way through that flow record triggered flow one contact and one opportunity is created and contact is created through record triggered flow and opportunity is created through auto launch flow right so this way first you will be creating auto launch flow then you will be creating record trigger flow so that auto launch flow will be available to use in the record trigger right? So I hope this way you understood all the requirements of schedule triggered flow as well as auto launch flow right? So just do implementation of these scenarios that I demonstrated and few examples are available in exercise sheet. So just implement them as well so that you can become export in these types as well. Okay, so this is all about today's session. This is what I just prepared for today's session and now if you have any question or queries you can ask in the chat and if you don't have if you have understood everything so you can just leave and tomorrow also I will be having one session where we will be discussing platform even triggered flow and we will be discussing about the best practices of the flow right? So same time we'll be having that session and link I will be providing in the exercise sheet as well as in the exercise doc and if you want to have those links so you can just go to the description of this video you will find all the links available right and do join the telegram group where I am going to share all the session links. So those who will be joining development sessions from the Monday so please ask them to join the group so that they will be having session links on daily basis because I need to schedule these live sessions on daily basis so I can just share on that day only so just ask them. Okay so I am going to take questions now so please be with me if you have asked any question. So Kalpana is asking how to make external call out from flow so that actually I have not demonstrated because it is something related to APIC so we just need to call that external call out code with flow so whatever is related to code that I have not explained as of now so maybe after learning APICs so we'll be having some sessions where I will be explaining how we can connect APICs how we can connect APICs and flows together. So very quickly if you are asking like if I made anything before schedule time what will happen after schedule time so if you do any changes on the record so at that schedule time whatever the status of that record is it will be utilized right so before schedule time if you do any modification in the record so that will be utilized by the flow okay because before schedule time if you do any changes so flow won't be affected that at that particular time whatever value is available in the record so flow will be working on that data so next question is we will use the custom object created in this admin section in APICs or we will start from the beginner so we will be starting from the beginning like I will be explaining all the APICs related concepts that you need to understand and like step by step I will try to explain things so that who the one who doesn't know the programming they also will be able to understand the APICs programming so first your question is very good and I just need to figure out the proper answer for that so I will research it is like part of best practice like what happens if we go beyond the limit so I will research it I'm just copying your question and I'm just having it in my sheet so I will be exploring this later so next question is will you please show how can we schedule email by using schedule triggered flow so answer will be you can just have email action used in your flow and if your flow is scheduled so at that time your email will be triggered automatically right so I think in our exercise we have one scenario related to that so yeah so last one send email to opportunity owner on daily basis for one opportunities using schedule triggered flow so here you will be scheduling trigger for particular date time and you will be having email action implemented in the flow so at that particular date and time your email will be sent out so next question is can we execute schedule trigger flow before schedule time manually no in flow we cannot do because we need to set date and time accordingly it will be executing automatically when we'll be learning about APICs programming then there we have schedule APICs then there we can do manual execution as well through code but here in flow we cannot so uncle you are asking please also add fault path as well so I don't think here we can add fault path yeah we can add so for these we can add like create contact if you want to add fault path you can and here you can create some options but generally we created for screen flow but here what you can do if you are getting any error so you can add fault path has email alert if you want to send any email to someone so you can just add email action and you can search for email alert and you can set it here right so that will be useful okay so you can practice that at your own because I know you you know how to add email action here so that you can use so there is next question how we can clone so flow basically you can clone through save as so if you have done some changes so whatever changes you have done you just need to click on save as and after save as new version will be created and you can just save it and if you see here we have two options new version and new flow so if you want to have different versions under the same flow then you can just create new version that is part of best practice and if you want to create net new flow so you can just select this option but this way you will be like creating lots of flows that is not a best practice so best practice says just create new versions and you can just use those thank you simi so these reference videos I created like in last three years with experience that I got through working on different projects so thank you for appreciating the effort so why the choose object is optional because inside the flow as per your requirement you can just select the element because schedule trigger flow you can run at particular date and time it is not specific to particular object if you want to make it specific to particular object then you can choose that object that's why it is optional so I'm just taking next question so next question is related to sales cloud that bhanu asked email to lead so right now I don't have appropriate answer for this for this so I'm just skipping it so next is in scenario one can a record trigger flow be used to update a website field when a lead is created or updated yes so if the requirement is whenever lead is created or updated then you want to update that website field so in that case yes so you are saying if yes how do we determine when to use a schedule triggered flow so I already told you if you are not creating any record if you are not updating any record if you are not deleting any record you are not doing anything with the record and at particular date and time you want to mass update particular fields on existing records in that scenario we basically use schedule triggered flow like if you know we are using mobile data nowadays and on daily basis our mobile data gets refreshed so that is basically done through schedule triggered flow where you are not doing anything with the record it is getting updated automatically so shriveli asking can we call schedule trigger flow in screen flow via sub flow I don't think we can because it is different in nature okay so next question is can you please explain more about system and user context in auto launch flow so if we go to auto launch flow so here in under settings you will find show advanced and here you will find these options so just go through this help text by default by default how the flow is launched determines whether the by default how the flow is launched determines whether the flow runs in the context of the user or the system so it means if non-system admin user is running this flow so this flow will run in that user context so there may be chances that user might not be having access to particular fields or particular object that is being used in the flow so if for those fields and objects you want your flow should run in system context so that you can have access to that feature so here you can see it is written if you choose system context with sharing the flow respects or by default settings role hierarchy sharing rule manual sharing teams and territories territories but it doesn't respect object permission field level access or other permissions of the running user if you choose system context without sharing the flow can access all the data right so here we have first user or system context if you select so it depends how flow is launched so if it is user non-system admin so as per that user it will run if it is system admin so it will run as system context if you choose system context with sharing so record level security will be applied if you choose without sharing so that flow can access anything so this way you just need to decide so for system context these two options are available and first is like it depends on the running user so i hope now it is more clear so vamshi is asking can we generate any pdf in sales force like pacelift yes i think through visual force we can do that so next question is recently in recent ask interview question you have one scenario with that scenario already finished by trigger i didn't get this question vishal thank you for appreciating so shriveli for your question like why flow why trigger so flow is point and click trigger is code so it depends on the requirement of the business if you don't need custom implementation go with flow because it is easy to implement if requirement is complex you can go with trigger with trigger you need to implement test classes as well but with flow you don't need to implement test classes so this way you can just do a comparison and you can do implementation so around we have a telegram group you can just join that and there you can ask doubts so first i don't think we can identify which flow modified the record so like logs will be showing you all the details so for flows also logs will be generated so if you go here and if you open the developer console so in developer console you will see all the logs and we can create logs manually as well so let me show you first here so here we have logs so here you will see some records right so here you can see the logs and you can create logs as well by going into setup so here you can create debug logs okay so you can just create new so right now here you can see this is available so here logs will be available so you just need to create new logs set date and time and between date and between that date time whatever you are executing those logs will be available here okay just give it a try next is in data security if we have sharing in flow if we take without sharing so it will enable the user to see created record no in flow like flow for processing will be able to access the data user won't be accessing on ui it is related to flow only no semi i don't have any reference video for web to lead i'm working on sales loud stuff so then i will be creating those videos so next is i'm having some cases having status as resolved i want to close the same case after seven days from result status okay so i think you can use scheduled triggered flow for that so just try to implement and if you see any doubt you can ask that in the telegram group so by using auto launch flow can we count total number of related records yeah we can do but we need to call it into record triggered flow so it will be better to create record trigger flow instead of auto launch flow because auto launch flow cannot work independently it needs to be called by any other flow so our own is asking as a best practice one trigger one test class same as flow also yeah so in trigger you need to implement test class but in flow you need to flow no test classes okay so if you have more question you can ask otherwise we can just end the session here so i'm just waiting for a couple of more minutes and then i will be ending the session okay so i don't see any questions thank you so much guys for joining today's session and tomorrow we have one more session at same time so we'll be like learning last type that is platform even triggered flow and some best practices so Sunil i already demonstrated it like what is sub flow and what is auto launch flow auto launch flow is a independent flow and sub flow is nothing it is like element through that you can just call any other flow so sub flow is an element through which we call another flows and auto launch flow is a type of flow yeah ashok if we select with sharing so flow cannot access the data it depends on the user who is running the flow so as per that user flow will be accessing the data if without sharing then it can access all so merging you if you want to do merging with the flow so then through loop you will be able to do that so just get all those records and basis on particular field you will be comparing and then you can just merge so best practices anti bro we will be discussing tomorrow just wait for tomorrow session i will show you all the limitations yes so Sandeep yes for your answer like rollback means whenever there is any failure so everything will be rolled back okay guys so like i think we don't have more questions so i'm just ending today's session thank you for joining and we'll see we'll connect tomorrow and we'll let you know more things tomorrow thank you