 Hello, everyone. I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School in this video. I'm going to discuss interview questions and answers related to flow builder. So flow is a powerful tool in Salesforce which is like growing each releases by releases. So hope these questions and answers will help you to prepare your interview related to flow builder. So first question is related to what is process automation. So process automation provides declarative tools to do automation in Salesforce. So we have four options like workflow rule process builder flows and approval process. So if you know like soon workflow rules and process builder will be deprecated. So we only have our flows to do automations and approval process is specific to send reports for approval. So flow will be the future for process automation now. So we need to know what is flow builder. So it provides declarative process automation. Lightning flow provides this point and click automation tool that is flow builder. So flow is the name of the product process builder and flow builder other name of the tools use process builder to create processes and use flow builder to create flows. So we need to know the type of flows. So this is important to know. So we have screen flow. We have record triggered flow schedule triggered flow platform even triggered flow auto launched flow. So five types of flows are available that you can create in Salesforce. Now, what are the flow elements those are available. So if you're using screen flow then only screens will be available. Otherwise, rest of the options will be available with most of the flows. So we have actions sub flow assignment decision loop collections or collection filter create record get record update record delete record and rollback records options. So if you want to know like how these resources works in Salesforce flow. So what you can do, you can just visit study Salesforce.com and there I provided all the videos related to flows and I have created some scenario based videos as well. Now, next is flow resources. So we can create these type of resources which are listed over here. So we can create variable constant formula text template choice collection choice set record choice set pick list choice set and stage. Now, let's talk about what is screen flow. So screen flow basically guides user through a business process. It can be launched through lightning page lightning. Sorry, experience cloud site quick action and more. So basically in screen flow what happens you will be having guided path where different different screens will be available on the UI and those screens will be interacting with the users to receive some input. So we have record triggered flow. So it launches when a record is created updated or deleted this auto launch flow runs in the background. So whenever you create any new record you update any existing record or you delete any existing record so this record trigger flow runs automatically. Then we have schedule triggered flow. So it launches at a specified time and frequency for each record in a batch. This auto launch flow also runs in the background. So you can just specify particular date and time whenever you want to run it. So it is also a powerful feature of lightning flow. Then platform event triggered flow. So it launches when a platform event message is received. This auto launch flow also runs in the background. Then auto launch flow. So it is invoked by apex processes rest API and more this auto launch flow also runs in the background. So I created videos scenarios for almost all type of flows so you can find those scenarios on study salesforce.com. So what to debug a flow. So if you want to debug a flow so it helps to test the flow execution before activating it. It shows step by step results and shows errors if there are any. What is once version control. So each time you update something in flow a new version is created after creating new version we need to activate the flow to run. Then next is can we use lightning component in a screen flow so answer will be yes you can. Can we call apex class through flow answer will be yes we can call. So there is one option which is known as action. So if you use action element so you can call apex classes as well. But you need to remember like when you create apex class and you implement a method. So you need to use annotation at the rate invocable method. So here's the next question related to that. So which annotation we use with apex class method when we call apex class through flow. So it is like at the rate invocable method. How to call a flow into another flow. So you can use sub flow element for that. So screen flow can call another screen flow as sub flow record trigger flow can call another auto launch flow as sub flow. Some important actions that can be done through flow. So you can perform post to chatter. You can use sand email or email alert actions. You can send notifications. You can call sub flow. You can call apex class. You can call approval process. So these are some important actions you can perform. Now what is the difference between dollar record versus dollar record underscore underscore prior. So basically both are global variables available in flow. Dollar record is available while record is created updated or deleted. Dollar report underscore underscore prior is available only when record is updated. So it will dollar record will be containing the new state of the record. It will be containing all the field values and dollar record underscore underscore prior will be containing the old version. So when we update the record so we have two state one is new and one is old. So new will be available under a dollar record global variable and old state will be available under dollar record underscore underscore prior. Dollar record provides the value of the record through which flow is triggered. Dollar record underscore underscore prior provides full value of the record through which flow is triggered. What happens when flow fails. So it gives an error masses on the UI also throws an email to the user who last modified it difference between fast field update versus actions and related records. So if you use fast field update so update fields on record that triggered the flow to run in this case flow runs before the record is saved to the database. In case of actions and related records it updates any record and perform actions like send an email. In this case flow runs after the record is saved to the database. So if you want to do something like related to actions or you want to do some operation on the related record of the record through which record is triggered so in that case you can pick actions and related records. And these options are like available with record triggered flow can records be inserted with users through flow. Sorry, can records be shared with users through flow. Yes, for example, if you want to share the account records so that. Sorry, for example, if you want to share account reports so in flow you can create a report of account share object right so if you search for this object so with the help of this you can share. You just need to fill the required fields which are available under this object and your report will be shared. Can we set the order of execution of report triggered flows. Yes. So a new feature is available which is known as flow trigger explorer so with the help of this you can set the order of execution. What are two parts we have in record trigger flow. So we have run immediately and run or simply. From where we can validate whether flow is scheduled or not so you can go to setup and in quick find you can search for schedule job and there you can find whether your flow is scheduled or not. Can we debug a flow as another user. Yes, we need to enable this setting from process automation setting. So this process automation setting you can find in quick find under the setup. So if you enable that setting so in that after that you can just run your flow as another user as well. What frequency we can set in schedule trigger flow so as of now we have once daily and weekly so any option you can select which are available. Now the difference between record single variable versus record collection variable. So if you create record single variable so it can store information in form of a single record about specific object and collection variable can store information in form of multiple reports about specified object. Can we pause and resume a screen flow. Yes, you can pause through button present on screen you can resume through. So you need to open setup then in quick find you need to type paused and failed flow interview so there you can find the paused interviews and through there you can resume that as well. Does flow support worsening. Yes, when we update something in flow it always create a new version. We can anytime activate or deactivate any version as per requirement. So it means like you if you want to deactivate the latest version and if you want to activate the older version so that is also possible. We can also delete existing versions if they are not in use anymore. Can we deactivate flow anytime. Yes, we can deactivate flows anytime if we don't want it to run later we can activate as well. Any version that we want to run. So these are some flow lightning flow related interview questions and answers so I hope these will help you while you are appearing for Salesforce interview. And if you want to learn more about Salesforce lightning flow. So what you can do you can just visit study Salesforce.com and there you will find a lot of resources. Thank you.