C Appendix: Add a New Email Campaign Event (Optional)
In this recipe, the following email campaign events are pre-configured:
- Sent Event
- Bounce Event
- Click Event
- Open Event
To add a new email campaign event other than what is pre-configured in the recipe, you must:
- Add a new event in the lookup table ORACLE-BRT-SFMC_UNITY_EVENT_TYPE. See Configure the Lookup Tables.
- In the Integration section, click the Oracle SFMC Automation Setup integration flow and perform the following tasks on the integration canvas.
- Assign global variables for the new event.
- On the integration canvas, select the AssignGlobalVariables element, and then click Actions
and select Edit.
- Add new variables for the event.
- On the integration canvas, select the AssignGlobalVariables element, and then click Actions
- Add a SOAP adapter endpoint and a mapper for the new event.
- In the Main Scope, expand DataExtensions Scope.
- Add a SOAP adapter endpoint along with a mapper element.
- Update the mapper with the details specific to the new event.
- Add a status check for the data extension created.
- In the DataExtensions Scope, select the switch case (IF DataExtensionsCreated) element, and then click Actions
and select Edit.
- Add a StatusCode for the new data extension created.
- In the DataExtensions Scope, select the switch case (IF DataExtensionsCreated) element, and then click Actions
- Add query definitions for the event.
- In the Main Scope, expand QueryDefinitions Scope.
- Add a SOAP adapter endpoint and a mapper for a query definition to query events data from the Salesforce Marketing Cloud data view and import the same to the data extension created for the event.
- Update the query definition mapper with the details and query specific to the new event.
- Add another SOAP adapter endpoint and a mapper for a query definition to copy data from the event-specific data extension to the results data extension.
- Update the query definition mapper with the details and query specific to the new event.
- Add switch case conditions and assign variables for the data extensions created.
- In the QueryDefinitions Scope, select the switch case (IF QueryDefinitionsCreated) element, and then click Actions
and select Edit.
- Add a StatusCheck for the new data extension created.
- To assign variables, select the AssignQueryDefinition element, and then click Actions
and select Edit.
- Add a new variable in the similar format you added for other events.
- In the QueryDefinitions Scope, select the switch case (IF QueryDefinitionsCreated) element, and then click Actions
- In the Automation Scope, update the mapper with the query definition created.
- In the Main Scope, expand AutomationScope.
- Select the Map to createAutomation element, and then click Actions
and select Edit.
- On the mapping canvas, add a new AutomationTask and map the new query definition created with the relevant target attribute.
- Assign global variables for the new event.