Links may not function; however, this content may be relevant to outdated versions of the product.
Combining data from two sources
Combine data from two sources into a page or page list to have all the necessary data in one record. To combine data, you need to identify a property that is a match between the two sources. The data from the secondary source is appended to the incoming data record as an embedded data page. When you use multiple Compose shapes, the incoming data is appended with multiple embedded data pages.
- In a data flow, click the Plus icon on a shape, and select Compose.
- Double-click the secondary Source shape to configure it. For example,
Subscriptions data set.
Note: When you select a data set, it must be a data set that you can browse by keys, for example, Database Table, Decision Data Store, Event Store, HBase, or Interaction History data set.
- Click Submit.
- Double-click the Compose shape to configure it.
- In the Name field, enter a name for the shape.
- Select a property in which you want compose data from your sources. For example, .Subscriptions.
- Click Add condition and select a property that needs to match between two sources. You can add more than one condition. For example, When .CustomerID is equal to .CustomerID.
- Click Submit.
The Compose shape outputs one record for every incoming data record after it is enhanced with additional data. This data is mapped to an embedded page or a page list of the incoming record. The input and output class of the data record remain the same.
For example, to create a record that contains the full customer profile for a call center interaction, your compose conditions can look like this:
Compose Customer with data from Subscription into
When CustomerID is equal to .CustomerID
The Customers data set contains basic information about the customer that needs to be combined with data in the Subscriptions data set.
Previous topic Filtering incoming data Next topic Converting the class of the incoming data pages