younifyd
Menu

Find Fields From Expression

Find fields from results of a query expression

POST/rest/search/v2/fields/find

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Find Fields From Expression action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{findFieldsFromExpression.response.data}}.

Request

Query parameters

organizationIdstring

The unique identifier of the target Coveo Cloud organization. Specifying a value for this parameter is only necessary when you are authenticating the API call with an OAuth2 token.

Request body

Enter the body as JSON in the step's Body field.

dictionaryFieldContextobject

A key-value store where each pair corresponds to the name of a dictionary field to query, along with the key to target within that field. **Example:** Suppose that in your index, the `@price` dictionary field contains different values for its `storeA` and `storeB` keys. Including `"dictionaryFieldContext": { "price": "storeA" }` in the query means that any part of the query expression that targets the `@price` field will in fact only query the `storeA` values of that field.

qstring

The *basic query* expression, typically the keywords entered by the end user in a query box.

Default ""

json
{
  "dictionaryFieldContext": {
    "price": "storeA"
  },
  "q": "Coveo \"Cloud V2\" platform"
}

Response

Returns 200 with an object. Read it in later steps with {{findFieldsFromExpression.response.data.<field>}}.

fieldsarray<object>
namestringrequired
json
{
  "fields": [
    {
      "name": "@author"
    }
  ]
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.

Find Fields From Expression — Coveo — Documentation