Skip to main content
Manager ApplicationRobots

Robots Cross Object Filtering

By August 13, 2020April 6th, 2021No Comments

Robots Cross Object Filtering

How to use Cross Object Filtering to get more Precise Robot Results

Cross object filtering is when multiple objects are used to qualify a record for a Robot. Cross object filtering refines your Robot filtering further than the conventional singular filtering criteria. Normally when a Robot runs, it requests records that meet the criteria from the CRM. Sometimes the data that is needed to qualify a record for a Robot does not exist on the record itself, but instead on a related record. In instances like this, you require a cross object filter to allow the Robot to recognize the related records in their queries.

For example, you may want to have contacts enrolled in a Play when the contact is related to an account that is up for renewal. You want to bring in contacts but use information on the account (the renewal status) to determine which contacts qualify. This is where cross object filtering makes it possible for a Robot to find this information.

Creating a Cross Object Filter

You can create a new Robot with a cross object filter or edit an existing Robot to have a cross object filter. All Robot filtering criteria and API usages should be considered while creating a Robot with cross object filtering.

Attention: Cross-object filtering causes Playbooks to use more API calls. Care should be taken when deciding if it is better to get data on the primary object or if cross object filtering is a suitable choice.

Related Article: Robot Filtering
Click this message to review Robot Filtering and learn how to set Robot Filtering criteria.

To Create a Cross Object Filter

  1. Open the Playbooks Manager Application.
  2. Click on the Robots tab.
  3. Click yellow plus button in the top right corner and follow the steps to create a Robot.
    Edit an existing Robot.
  4. Add a cross object filter by selecting fields on related objects.
  5. Click TEST THIS ROBOT to examine and validate the number of records that currently qualify for the filter.
  6. If test results are what you expect, click SAVE.
Note: When creating a new Robot, the Robot is OFF until you activate it. If you are ready for the Robot to be live, toggle the ON/OFF switch to allow the Robot queries and actions your CRM records.

API Usage for Cross Object Filtering

Playbooks completes three separate steps when querying cross object Robots which can all consume API calls. While these numbers can vary slightly, below is a general pattern you’ll find.

For this example, let’s say 500 secondary objects qualify for a Robot. When using a cross object filter, a Robot will:

  1. Query for all the secondary objects that qualify based on the Robot Criteria (1 API call).
  2. Query for the primary object of each qualifying secondary object. If there is one primary object for every secondary object, this step will consume 10 API calls (500/50 = 10 API calls).
  3. Query whether the primary objects qualify based on the Robot criteria. This will consume the 10 API calls from the previous set multiplied by the number of users included on the Robot. If there are 5 users included on this Robot, this query will consume 50 API calls per query (10 * 5 = 50 API calls).

Based on the example above, each query would use a total of 61 API calls per query (1+10+50 = 61 API calls).

Since Robots run every 10 minutes by default, they usually run 144 times each day. Assuming this many records will qualify every time the Robot runs over the entire day, this Robot will consume a minimum of 8784 API calls per day (61*144 = 8784 API calls). As more records have CRM data updated, it’s not likely that the API call numbers will stay consistent. As more records qualify for this cross-object filter, more API calls will be consumed.

Make sure you know which interval your organization is using when you calculate your API usage. If your Robots are set to run queries every 20 minutes, your API usage will be half of what it would be at 10 minutes. For more information on changing Robot query runtime, contact your CSM. If Robots are set to run queries every 20 minutes, your API usage will be half of what it would be at 10 minutes. For more information on changing Robot query runtime, contact your CSM.  

Tip: If you find that your cross object filter returns too many results, add additional filters or different filter for Opportunities so that not as many records qualify.

Was this article helpful?