Create a transmit opportunity flow
The transmit opportunity flow sends opportunities that are associated with AppDirect accounts to AppDirect.
To create a transmit opportunity flow
- In Salesforce, click the gear icon and then 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 created or updated.
Run the Flow: After the record is saved. - Click Choose Object and then search for and select Opportunity. Add the following values for the Choose object dialog:
Field Value Condition Requirements None - Click Done.
Add an element to the Record-Triggered Flow
- From the flow, click the + under the Start condition.
- Select Decision as the interaction.
- Add the following values to the New Decision dialog:
Field Value Label Is Customer API Name Is_Customer Description Outcome details Outcomes Label Is Customer Company Outcome API Name Is_Customer_Company Condition Requirements AND Resource {!$Record.Account.AppDirect__Company_Type__c} Operator Equals Value Customer - Click Done.
To add an action element to the decision
- Click the + under the Is Customer Company flow.
- Select Action as the interaction.
- Filter by Type and then select Apex Action.
- Search and select Transmit Opportunity to 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 fields in the New Action dialog:
Field Value Label Transmit Opportunity API Name Transmit_Opportunity Description Sends a qualified opportunity to AppDirect Record ID {!$Record.Id} AppDirect UUID Set to Include, and set the value to {!$Record.AppDirect__AppDirect_ID__c} - 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 Transmit Opportunity in AppDirect Flow API Name Transmit_Opportunity_in_AppDirect Description Transmits a qualified opportunity to AppDirect - 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!