Automate Validation with Flow Builder
Use an autolaunched flow to trigger the document extraction and comparison process when a user uploads a file. The flow sends the document to the AI engine, which evaluates the content against your validation definitions.
Required Editions
| Available in: Lightning Experience. |
| Available in: Enterprise and Unlimited editions that have Financial Services Cloud enabled. |
Set Up a Record-Triggered Flow
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- Select Record-Triggered Flow, and then click Create.
- For Object, select Party Profile.
- Set Trigger the Flow When to A record is updated.
-
Under Set Entry Conditions, set Condition Requirements to
All Conditions Are Met (AND), and then add this condition:
- Field: Parent Record ID
- Operator: Equals
- Value: {!$Record.Id}
- Under Optimize Flow For, select Actions and Related Records.
- Add a Get Records element to the canvas.
- Set the Label to Get DCI, and for Object, select Document Checklist Item.
-
Under Filter Document Checklist Item Records, add this condition:
- Field: Parent Record ID
- Operator: Equals
- Value: {!$Record.Id}
- Set How Many Records to Store to All records, and set How to Store Record Data to Automatically store all fields.
- Add a Loop element after the Get DCI element.
- Set Collection Variable to Document Checklist Items from Get DCI, and set Direction to First item to last item.
- On the For Each path inside the loop, add an Action element.
-
Search for and select Request Document Extraction
Validation.
Set the Label to Document Extraction Validation Request Action 1.
- Under Set Input Values, set Document Checklist Item ID to Current Item from Loop (Loop 1) > Document Checklist Item ID, and set Processing Type to Document Extraction and Validation.
- Save and activate the flow.
Trigger the Action from Stage Management
- In your application's Stage Management configuration, locate the stage transition where document validation should be initiated, such as a document review stage.
-
Add an autolaunched flow to the stage transition.
In the autolaunched flow, add an Action element, and select the Request Document Extraction Validation invocable action.
- Pass the document checklist item ID associated with the record to the action.
After the flow runs, review the extraction and validation results in the Document Extraction Request related list on the document checklist item. Verify the Document Extraction Request Step records to check the status of each step involved in the document extraction request process.

