Convert an outcome
This topic describes how to convert an outcome that was triggered from the tracker into a custom CarPurchaseOutcome before it is saved to xConnect.
Create an outcome conversion processor
-
Create a pipeline processor that inherits
ConvertToXConnectEventProcessorBase<OutcomeData>. -
Implement
CreateEventandCanProcessPageEventDataas shown. This handler assumes that the make and model of the car are stored in theCustomValuesdictionary.
Register outcome conversion processor
Create a new configuration file named MyBrand.CustomEvents.config and patch in your handler as shown:
Your processor must be patched in before the final outcome handler.
Trigger the outcome
Trigger the outcome with the custom data that the outcome conversion pipeline processor expects:
From 9.0 Update-1 onwards, you can also trigger an outcome with custom data for the current interaction.