How to create an After Save Record-Triggered Flow in Salesforce

Описание к видео How to create an After Save Record-Triggered Flow in Salesforce

📌How to create an After Save Record-Triggered Flow in Salesforce
📌 A record-triggered flow is the most commonly used automation. It’s the best way to interact with the records in your org. the job of a record-triggered flow is, "If something happens, then do something else." It means that it runs automatically when a record is created, updated, or deleted.
Depending on what you want to perform, you can choose the flow to run before or after the record is saved.
If you need to update any other record or perform actions like sending emails or calling subflows, then after-save flow is the right option.
It can be triggered when the record is created, created or updated, or updated.
Problem Statement: When an account's BillingCity is updated, update all its contacts' MailingCity with the account's BillingCity.

📌 Steps:
In the top right corner, click on Setup.
Search for Flows in the quick find box, and click on Flows.
Now click on the New Flow button.
Here Choose a Record-Triggered Flow, and click on Create.
Now select the "Account" object.
And in the configure trigger section, select "A record is created or updated."
Scroll down and select "Actions and Related Records." Then click on Done.
Now, the Flow Builder Screen appears.
Click on the plus sign icon to add an element.
Scroll down to select "Update Records."
Enter "UpdateContacts" as the Label and API Name.
Now select the third option. "Specify conditions to identify records and set fields individually."
Select "Contact" as the object type.
Scroll down and fill in the Filter Contact Records section.
Enter "AccountID" in the field, "Equals" in the operator, and "Record.ID" in the value.
Now fill in the "Set Field Values for the Contact Records."
Enter "MailingCity" in the fields and "Record.BillingCity" in the value.
Then Click the Done button.
also, click on Save.
Enter "UpdateAccountsRelatedContacts" as the Flow Label and Flow API Name.
Click on Save and Activate the Flow.
Now we will see this flow in action.
We go to Accounts and check the "sForce" named Account.
We can see that there are three related contacts to this account.
In the details section, under the billing address, the city is San Francisco.
We will now go to the related contact, Jake Llorac, and check the mailing address, which is currently empty.
Now we want that whenever we update the BillingCity of an sForce Account, the same city name gets updated in all its related Contacts.
We go back to our sForce Account to update it.
Click on the Edit button on the top right corner.
Scroll down to the Billing City field and enter "Mumbai". Then click on Save.
Now that this account is saved, we will check the related contacts.
Go to Contacts. Click on Jake, and then click on its details. Here we can see the mailing address is updated with the same city name as in its parent account.
We will check the other two contacts the same way.
The other two contacts are also updated. That means our flow is working fine.
#crm #salesforcedevelopers
-----------------------
📌 For #salesforce Consulting & development services visit here - https://cynoteck.com/salesforce-profe...
-----------------------

📌 Follow us Here-
Facebook -   / cynoteck  
Twitter -   / cynoteckts  
LinkedIn-   / cynoteck-technology-solutions-private-limited  
Pinterest -   / cynotecktechnologysolutions  

Комментарии

Информация по комментариям в разработке