 Hello everyone. I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate a scenario based on report trigger. Let's understand the requirement that I'm going to demonstrate with the help of report trigger flow. So we need to update account record using fast field update. So whenever accounts billing information is populated or updated, then we need to copy that information to shipping address. So I will be doing this for account creation as well as on account operation. So let's jump to developer. Edition all so I'm going to create new flow. So I will be creating a report trigger flow and here I'm selecting account as object. Now I'm selecting this third option that is a record is created or updated. Now here I need to apply the condition. So before applying this condition, let me take you to the object manager so that we can see the fields which are related to address. So if I go to account object and under fields and relationships, if I search for address, so you will see billing address and shipping address fields are available. But you can't use these APIs directly in the flow because they are internally divided into separate APIs. So if I go to the UI and check this billing and shipping information so here you can see under billing address you have billing street, city, state, zip code, billing country. Similarly, you have all five fields under shipping address as well. So we need to have these fields individually in the flow. So here I'm searching for shipping. Sorry, I'm searching for billing information. So you can see billing street, sorry billing city country, then if you go down postal code state street all fields are available. So you need to select them one by one. And then you can select is changed to then add conditions so I already selected this or so any of the field like if billing city is changed, then also this flow will work. If billing country is changed, then also this flow will work. Similarly, I have postal code. If it is changed, then flow will walk. Then I have billing state is changed to then billing street is changed to so this way, any of these five field is changed, then this flow should work. Now, and I'm selecting fast field updates because I need to just update the account record. I don't want to do anything with the related record. So I clicked on done so this way this record trigger flow is available. Now from here I just need to select the update record. So, I'm going to update the account record. Here you can see this radio button is automatically selected, use the account record that triggered the flow so the account record through which this flow will be triggered. Only that record will be updated so you don't need to provide any condition and you can't do because we just selected fast field update that works on the current record through this through which this record trigger flow is triggered. So here we need to select shipping information so shipping city. So here we can assign. Okay, so we need to select report dot billing city. Then add field shipping country equals to dollar report dot billing country so whenever any record trigger flow is triggered whenever you create or update any record so that newly created or updated reports information will be available in this dollar record variable so that's why we are using that. So next we can have shipping postal code. So record dot postal code so here we need to select billing then shipping state. So, here we can select dollar record dot billing state and then shipping street equals to record dot shipping. Sorry, here we need to select billing street. So this way, all the billing information will be available will be copied and will be available in the shipping information. Now I'm clicking on done. So here like you won't be able to have that dollar record you just need to select the field so it will be automatically related to the record through which this record trigger flow is triggered. Right, so now I can save this so copy billing information to shipping. Now I'm clicking on done. Activating this flow. So now if I added this report so if I provide some information so let's say street. I'm writing test street, test city, test state postal code dummy then country let's say India and save. So you can see the billing information is copied to the shipping information. Now if I change anything let's say I'm changing country from India to USA and saving this record. So at right hand side you can see shipping information is changed. So if you change any value, let's say we are changing billing city so test city updated. Now I'm saving this so you can see test city updated as populated here. So if you change any of the field related to billing that change will trigger the flow and that changes available in the shipping information as well. Now if I go here, try to create new account record and provide this information and click on save. So now you can see this flow is not working because we applied the conditions as is changed. Right, so now what we need to do. So here I need to have five more conditions so let's say billing city, then I can write is null false. Right so for update it is working properly but we need to apply this for insert as well so for insert you will be having these conditions. So billing street is null false and postal code is null false and then state is null false. Click on done save as save as a new version and activate. Now try to create new account so filling these information again and clicking on save. So this time if you go to details you can see all the information are copied from billing to shipping. Now let's check update as well. So I'm updating street and clicking on save. So here you can see street is updated. So this way if you apply these conditions so in this way your flow is working for both create as well as update. So this way with the help of fast field update, you can update the same record through which your record trigger flow is triggered.