Skip to main content

Time Estimate

Configure a Data Processing Engine Definition

Create a Data Processing Engine Definition

The holiday season is approaching and Cloud Kicks is expecting a huge increase in sales. Before customers start placing orders, the management is eager to test Data Processing Engine and its wonderful data transformation magic. So, without further delay, put on your admin hard hat, and jump in!

First, create a Data Processing Engine definition.

  1. Click Setup and select Setup.
  2. In the Quick Find box, enter Data Processing Engine, and then select Data Processing Engine.
  3. Click New.
  4. On the New Data Processing Engine Definition window, provide these details.
    • For Name, enter Get Order Aggregate.
    • API Name: This field auto-populates with Get_Order_Aggregate.
    • For Process Type, select Standard.
  5. Click Next.
  6. Select the CRM Analytics runtime platform.
  7. Click Done.

The Get Order Aggregate Data Processing Engine definition builder canvas opens. Next up, configure the Data Processing Engine definition.

Add Data Sources

The next step after creating a definition is to add data sources from where you want to fetch the data. The first node by default is always a Data Source node. When you select the source object, you can also select its fields as data sources. In the case of Cloud Kicks, add the Order, Order Product, and Product objects as Data Source nodes to fetch the order and product details, and product names.

  1. On the Get Order Aggregate Data Processing Engine definition builder canvas, click New Node.
  2. On the New Node window, specify these details.
    • For Name, enter Get Order.
    • API Name: This field auto-populates with Get_Order.
    • Save your changes.
  3. In the Configuration pane, for Source Object, find and select Order.
  4. Click Select Fields.
  5. Select Field to select all the fields.
  6. For Order ID, change the alias to OrderId.
  7. In the Select Fields pane, save your changes.
  8. In the Configuration pane, save your changes.
  9. Click Save beside Activate.

You’ve successfully added the Order object as a data source and it’s ready to be used.

Add the Order Product Data Source

Use the Order Product object as the second data source to get the product details.

  1. Add another source node by clicking New Node.
  2. On the New Node window, specify these details.
    • For Node Type, select Data Source.
    • For Name, enter Get Product.
    • API Name: This field auto-populates with Get_Product.
    • Save your changes.The New Node window showing the Node Type, Name, and API Name fields with their corresponding data.
  3. In the Configuration pane, for Source Object, find and select Order Product.
  4. Click Select Fields.
  5. Select Field to select all the fields.
  6. In the Select Fields pane, save your changes.
  7. In the Configuration pane, save your changes.
  8. Click Save beside Activate.

And just like that you’ve added the Order Product object as a data source and it’s now ready to be used.

Add the Product Data Source

Use the Product object as the third data source to get the product names.

  1. You’ve already added two data sources. Similarly, add another data source node named Get Product2. The API Name field auto-populates with Get_Product2.
  2. In the Configuration pane, for Source Object, find and select Product.
  3. Click Select Fields.
  4. Select Field to select all the fields.
  5. In the Select Fields pane, save your changes.
  6. In the Configuration pane, save your changes.
  7. Click Save beside Activate.

You’ve added the Product object as a data source and it’s now ready to be used. And with that, you’ve configured all the required data sources. Congrats! Here’s the Get Order Aggregate definition with the three configured data source nodes.

The Data Processing Engine builder canvas with the three data source nodes.

Your data sources are now configured and ready.

Add a Filter Node

Next, add a filter node to get the Cloud Kicks order information from the beginning of the current year until the current date. As the sample data in your Developer Edition org is configured for a specific year, make sure to select 2024 to get the expected results.

  1. On the Get Order Aggregate definition builder canvas, Click New Node.
  2. On the New Node window, specify these details.
    • For Node Type, select Filter.
    • For Name, enter Filter Order.
    • API Name: This field auto-populates with Filter_Order.
    • Save your changes.
  3. In the Configuration pane, specify these filter condition parameters.
    • For Source Node, find and select Get Order.
    • For Resource, find and select Effective Date.
    • For Operator, select Greater Than or Equal.
    • For Type, select Field.
    • For Value, select Jan 1, 2024.
  4. In the Configuration pane, save your work
  5. In the builder canvas, click Save beside Activate.

The Filter node fetches only those orders that meet the filter condition.

In this step, you learned how to create a Data Processing Engine definition, add data sources, and filter the data. In the next step, learn how to configure nodes to transform data and write back results in the definition.

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback