Workflow Action - Find Opportunity
Overview The Find Opportunity action allows you to locate an existing opportunity linked to the contact that triggered the workflow, based on specific criteria. You can choose to find either the Earliest (first created) or the Latest (most recently created) matching opportunity for that contact. Once found, this opportunity record becomes the reference for all subsequent opportunity-based actions in your workflow. If no match is found, the workflow branches to an alternate path, enabling you to handle that scenario differently (e.g., create a new opportunity). > Important: If there is no contact in the workflow (for example, in the case of an inbound webhook that does not include contact information), you must configure the Find Opportunity filters to map certain fields to the webhook parameters. Otherwise, the action will not be able to locate an opportunity. ## Action Name Find Opportunity ## Action Description The Find Opportunity action searches for an existing opportunity linked to the contact who entered the workflow, matching the filters you specify. All filters are combined using AND logic, meaning all specified conditions must be met to return a match. If multiple opportunities satisfy these conditions, only one will be returned—either the earliest or the latest, as configured. If no match is found, the workflow continues along a separate “Opportunity Not Found” branch. ## Action Details!(https://assets.patientcopilot.ai/b4482493c8e2af5a.png) | Value Name | Description | Mandatory |
| --- | --- | --- | | Action Name | A custom label to help you identify this step in your workflow. | Yes | | Opportunity to be Found | Determines whether to retrieve the Earliest (first created) or Latest (most recently created) opportunity that meets the filter criteria for the contact entering the workflow. | Yes | | Filters | One or more conditions to narrow down the search.
- All filters use AND logic.
- No limit to the number of filters.
- Filters can reference any standard or custom opportunity field (e.g., Opportunity Name, Followers, Status).
- If there is no contact (e.g., inbound webhook), filters must map certain fields to webhook params.