How To Report on Interactions for Sales Orders with Reference to Campaigns
SAP Hybris Marketing Cloud delivers various CDS Consumption Views (Queries) for reporting on interactions which are captured in the Marketing system.
If it is required to provide a report for a dedicated interaction type, for example interactions for Sales Orders, which carry also a reference to a campaign, can this be achieved by means of extensibility as follows:
- First logon as Administrator and open the app Custom CDS Views
- to create your own custom CDS view
- Specify name and label and define the CDS view with the property “Analytical” as “Cube”
- Add the Primary Data Source I_Mkt_Interaction
- Add the associated data source I_Mkt_Initiative
- Search for I_Mkt_Initiative and add the data source
- Specify the association between the primary data source I_Mkt_Interactions and the associated data source I_Mkt_Initiative, use as cardinality “One or more hits”
- In the next step add also the associated data source I_Mkt_Contact
- Specify the association between the primary data source I_Mkt_Interactions and the associated data source I_Mkt_Contact, use as cardinality “One or more hits”
Select the desired fields from the data sources interaction contact and campaign.
In particular take over the field “InteractionType”, because this is needed for filterng the interactions for Sales Order and of course the filed “InteractionAmount” and “Currency” for the desired result on sales volume.
- Define the field properties, in particular the aggregation type and the semantic vaule “Currency” for the InteractionAmount.
- Activate the CDS Query by means of the button “Publish”
As a result you have created a proper Custom CDS View being used for a Custom Analytical Query to create the desired report on Sales Volume with Reference to Campaigns.
To do so, please follow the steps which are described in the Blog
Note, that in the Custom Analytical Query it is then needed to specify a filter on the attribute “InteractionType” with the Value ‘SALES_ORDER’ as illustrated in this screenshot.
This is important in order to make sure that only interactions of type sales orders are selected by the custom query.