Create a finalize opportunity flow
The finalize opportunity flow marks the opportunity as finalized (closed) in AppDirect when it is marked "Closed/Won" in Salesforce.
To create a finalize opportunity flow
- In Salesforce, click the gear icon and select Setup.
- Go to Platform Tools > Process Automation > Flows.
- Click New Flow.
- Select Record-Triggered Flow and then click Next.
- Select Auto-Layout. Flow Builder automatically organizes the connectors for you.
- Click Edit.
- Select the following:
Trigger the Flow When: A record is updated.
Run the Flow: After the record is saved. - Click Choose Object and then search for and select Opportunity. Add the following values for fields in the Choose Object dialog:
Field Value Condition Requirements All Conditions Are Met (AND) AppDirect__AppDirect_ID__c Operator: Is Null
Value: FalseAppDirect__AppDirect_Purchase_ID__c Operator: Is Null
Value: TrueStageName Operator: Equals
Value: Closed won - Click Done.
To add an action element to the Record-Trigger flow
- Click the + under the Record-Triggered Flow branch of the element.
- Select Action as the interaction.
- Filter by Type and then select Apex Action.
- Search and select Finalizes Opportunity in AppDirect**.**
Note Ensure that you select the correct Apex action. If the wrong Apex action is selected, data does not move to AppDirect and errors will be logged . For example, Selecting Transmits Opportunity to AppDirect instead of Transmits Opportunity Item to AppDirect.
- Enter the following values to the field New Action dialog:
Field Value Label Finalize Opportunity API Name Finalize_Opportunity Description Finalizes an opportunity in AppDirect when Stage = “Closed Won” in Salesforce Record ID {!$Record.Id} - Click Done.
To save the flow
- Click Save
- Add the following values to the fields in the Save the Flow dialog:
Field Value Flow Label Finalize Opportunity in AppDirect Flow API Name Finalize_Opportunity_in_AppDirect Description Finalizes an opportunity in AppDirect when Stage = “Closed Won” in Salesforce - Click Save.
- Click Activate. The flow is activated and is displayed in the All Flows table.
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!