Requirement - When user enters a value in a field(Example__c) then it needs to be validated against an external object and only if the value matches then only we save the changes.

Tried so far - Initially I was using an apex trigger but while developing it came across the fact that Apex Trigger cannot refer an external object, but we can use lightning flow instead.

Problem - I came across this help document: https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_asynchronous_path.htm&release=234&type=5

  1. Since my update is happening for the same record, I should go for before save option but in document they mentioned about after save.
  2. Validating against external table needs to be in asynchronous path whereas my requirement is synchronous if I am not wrong.

Need suggestions that what method or process I should follow to handle these issues.

  • Take a look at Data Integration, Record-Triggered Automation and Building Forms decision guides. Collectively, these 3 guides answer your question.
    – identigral
    Commented Mar 17, 2023 at 16:52
  • @identigral - Thanks for the documents. However I still cannot put the puzzle pieces in proper place. Can you please guide me more on this? Commented Mar 18, 2023 at 3:59
  • 2
    You're asking a broad question, so here's a broad answer: you're going to have rethink your solution in asynchronous terms or use another technology stack.
    – identigral
    Commented Mar 18, 2023 at 6:18
  • @identigral - Thanks for the comments. Now I got more clarity on the use case. Commented Mar 18, 2023 at 16:54


You must log in to answer this question.

Browse other questions tagged .