๐Ÿ—“ December 15, 2020: Hitchhikers Office Hours

Hi Jessie,

You can do this using a filter by Entity ID!

Hereโ€™s an example of what the rule would look like:

{
      "criteria": {
        "contextContainsKey": "$.entityId"
      },
      "actions": [
        {
          "actionType": "ADD_FILTER",
          "filter": {
            "entityId": {
              "$eq": "{{$.entityId}}"
            }
          },
          "verticals": [
            "loan-officers"
          ]
        }
      ],
      "name": "Filter By Entity ID"
    }

On the LO page (where the search bar is initialized at the top), you can call ANSWERS.setContext() , for example ANSWERS.setContext({entityId: "LO-18219"}).

Hereโ€™s the full query rules module for further reference: Query Rules | Hitchhikers

Thanks,
Rose