 Hello everyone. I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate a report triggered flow scenario. Let's understand the requirement now. So if you want to implement a record trigger flow where you want to update child reports whenever parent record is updated. So to understand this requirement, I have a use case that is a popular account billing address to related contacts mailing address. So how we are going to do that. So we will be creating a checkbox on account and if the checkbox is updated to true from false. So in that case, account billing information will be copied to the accounts related contacts mailing address. So let's see how we can do this with the help of report trigger flow. So first of all, I'm going to create a field. So under object manager, I selected account then fields and relationships, then I'm clicking on new. So from here, I'm going to create a field of type checkbox. So naming it as copy billing to mailing visible to all the profiles clicked on next available to all the page layouts and then clicked on save. So this way our field is created. Now I can go and create a new record trigger flow. So this record trigger flow will work on account. Now here I'm selecting a record is updated because on creation if you are creating new account so at that time there won't be any related contact. So once you created any account and that account is having some related contact. So later on when you provide address or if you have already provided billing address on the account record. So later on you can just enable that checkbox so that all the billing information will be copied to the mailing address on contact. So you can just have it and here you need to provide the conditions so we need to select this field if it is changed. So if it is changed and its value is equals to true. Then from here I'm selecting accounts and related reports and clicked on done. Right now we need to update the context which are related to that account. So here we need to select update reports. So we need to update the context and I'm selecting this third option like specify conditions to identify reports and set fields individually. So from here I'm selecting object as contact because we need to update the contact. Now we need to update the context which are related to account. So contacts are related to account with the help of lookup. So that lookup API is known as account ID. If it is equals like this account ID is available on contact which is having account ID. So if this account ID lookup is equals to the ID which is available in this global variable. So whenever you are updating any account record so account record information will be available in this dollar record variable. So through that you can have the account ID. So if this account ID is available in this account ID lookup on any contact so it means that contact is related to the account through which this report trigger flow is triggered. So now we can update. So I am selecting mailing city equals to record dot billing city, then mailing country equals to record dot, sorry, billing country. So on the left hand side we have all the mailing information those are available on contact and on right hand side we are having all the billing information that is available on the account. So this way I mapped a mailing postal code with billing postal code. Next is mailing state with billing state and then mailing street with billing street. Okay, so this way I mapped all the billing information of account with the mailing information of the contact. Now I'm clicking on done. So the flow is created and now we can save it. I'm clicking on save activating the flow. Now I need to open the account record where some related contacts are available. So I'm opening this and here you can see two contacts are already available. And I'm going to open these contacts and new tap so that we can see whether they are having any mailing information or not. So here you can see we have this billing address already populated mailing address is also available. Right, so what I'm going to do, I'm going to erasing these so that they will be blank and when we will be enabling that checkbox then the billing information will be copied here. Right, so both the contacts are having mailing information as blank. Now if I come here. So here you will see the checkbox. Okay, I need to refresh this page so that I can see the field on the detail page. Yeah, here we have this copy billing to mailing. So if I added and enable this checkbox. So this billing information will automatically populated on the related contacts. So if I click on save. Refresh and see the details. So here you can see mailing address is populated. If I go here, do a refresh. So you can see mailing information is available automatically. Right, so now this checkbox is checked. It means if you create new contacts in those contacts mailing address won't be populated automatically. Right, so in that case what you can do just uncheck this checkbox and then again check this checkbox so that newly created contact will also be having that information. So let's try that. So I'm creating new contact. So here this billing information is already populated. So I'm just leaving it as blank and saving the context. So if I open this a new tab, go to details. So here you can see mailing address is blank. So now what you can do. So I unchecked it. If I uncheck and refresh the related contacts. So wherever mailing information is available they will be intact. There will be no change. Now if I select this and save it again. If I refresh the existing contacts, so they will be having the mailing address populated, there will be no change. If I go to this newly created contact, if I refresh this. So here you can see mailing address is available, similar to billing address. So this way, like all the purposes are fulfilled with this checkbox if you want to copy billing information to the mailing, billing address to the mailing address of the contacts, right. So this way, I hope you understood how we can update child reports when parent record is updated.