Easymailing
Opportunity filters

Get a field to filter opportunities by

GET /opportunity_filter_fields/{fieldId}

GET/opportunity_filter_fields/{fieldId}

Returns one field of the opportunity filter catalog with its operators, value shapes, constraints, options and the record its values point to.

When to use: To check which operators and values are valid for one field before writing a condition on an opportunity in a workflow, or after an invalid_filter_operator or invalid_filter_value issue.

When not to use: To find a field when you do not know its id, use list_opportunity_filter_fields with search.

Permissions: Requires a CRM seat and the crm.opportunities.read capability. A field the user cannot use (an archived attribute, or one their role cannot read) is not listed.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

fieldId*string

id of the field, from list_opportunity_filter_fields.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/opportunity_filter_fields/stageId" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "id": "string",  "label": "string",  "type": "string",  "operators": [    {}  ],  "options": [    {}  ],  "reference_type": "string",  "usable_in": [    "string"  ]}