When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be updated based on the values in another custom object called PostalCodeToTimezone__c.
What is the optimal way to implement this feature?
B. Build a flow with Flow Builder: Create a Flow using Flow Builder to perform the logic of looking up the Timezone value based on the Postal Code from the "PostalCodeToTimezone__c" custom object. Flows offer flexibility and can interact with custom objects and perform complex logic.
Then, use Process Builder to trigger the Flow when an Account is edited, and the Postal Code field changes. In the Flow, you can perform the necessary query to fetch the Timezone based on the Postal Code and update the "Timezone" custom field on the Account accordingly.
The formula field is technically possible but is not a very practical implementation. The formula field is only able to reference a related record to the one it is in. We don't have details about exactly how PostalCodeToTimezone__c works, but supposing there's a single record for every PC with its timezone, this would require to associate the corresponding record to each Account, defeating the purpose of the automation.
A Flow would be way more practical; just a simple record lookup using the current PC value to retrieve the corresponding timezone and set it to the Account, that adding that it can be made into a "Fast Field Updates" flow makes it the best option.
Formula field is not on real exam. I believe it should be either a record triggered flow or a trigger
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Keiyo
1 year, 2 months agochucksback
1 year, 3 months agoDavidSFDev9
1 year, 5 months agoRMEZZA
1 year, 9 months agoRMEZZA
1 year, 9 months ago