SALESFORCE-HYPERAUTOMATION-SPECIALIST practice question 4 of 15

Northern Trail Outfitters set up a MuleSoft Composer integration between Salesforce and NetSuite that updates the Order object in Salesforce with data from NetSuite. When an order in Salesforce is updated as complete, the Last Order Date custom field on the related account should automatically update with the date the order was marked complete. What is the best practice to achieve this outcome?

Full set: 60 questions
Answer options
A: Update the MuleSoft Composer integration to also update the related account when the order is marked complete.
B: Replace the MuleSoft Composer integration with a three-tier API integration between Salesforce and NetSuite using Anvpoint Platform.
C: Create a record-triggered flow on the Order object that updates the related account when the order is marked complete. Correct answer
D: Create a MuleSoft RPA bot that updates the related account when the order is marked complete.
Correct Answer:
C. Create a record-triggered flow on the Order object that updates the related account when the order is marked complete.
Explanation

To update the Last Order Date custom field on the related account when an order is marked complete in Salesforce, the best practice is to use a record-triggered flow: Create a Record-Triggered Flow: Use Salesforce Flow to create a record-triggered flow on the Order object. Set the flow to trigger when a record is updated (specifically, when the order status is updated to complete). Update the Related Account: In the flow, use a Get Records element to fetch the related Account record. Use an Update Records element to update the Last Order Date custom field on the related Account with the date the order was marked complete. This approach ensures that the data remains within Salesforce and is updated immediately as part of the same transaction, providing a robust and efficient solution.
Reference: Salesforce Flow Builder Documentation

Scroll to Top