1. Interactions

Page events - outcomes

Version:
Note

For background information on page events, see the Page events page.

Format in Sitecore 8.x

In Sitecore 8.x, the outcomes for a specific interaction are captured in a separate collection from the interactions. Interactions are stored in the Interactions collection while outcomes are stored in the Outcomes collection.

An outcome is associated with an interaction through the InteractionId property on the outcome.

The following is an example of an outcome:

{
    "_id" : NUUID("5184b2e7-3e81-4a1b-ac19-29ba660be20c"),
    "_t" : "ContactOutcome",
    "DefinitionId" : NUUID("52054874-4767-47dc-8099-8c08bfa307aa"),
    "EntityId" : NUUID("fcb3a453-981b-4ea6-8d6d-795732d16fda"),
    "DateTime" : ISODate("2018-01-01T11:`00:00`.000Z"),
    "MonetaryValue" : "0",
    "InteractionId" : NUUID("b3d88499-4ea9-4ab8-a747-9f980f075f53"),
    "CustomValues" : {
        "_t" : "SimpleValues",
        "Values" : [
            {
                "k" : "Outcome Name",
                "v" : "Marketing Lead"
            },
            {
                "k" : "SC Item Id",
                "v" : "460bae50-cfa9-4211-aa45-9806d9d73910"
            },
            {
                "k" : "SC Item Path",
                "v" : "/About/Locations"
            }
        ]
    }
}

Format in Sitecore 9

In Sitecore 9, outcomes are events. and all events associated with an interaction are stored directly on the interaction. The events are stored in a property named Events.

General outcomes

This section describes how general outcomes are mapped from Sitecore 8.x to 9. A general outcome is any outcome is not matched to a specific outcome type.

Source objectDocument from the Outcome collection whose InteractionId value matches the interaction
Event mapping definitionEvent Mappings for MongoDB Outcomes > General Outcome
Event object typeSitecore.XConnect.Outcome
Field mapping definitionMongoDB to xConnect Outcome Mappings > MongoDB Outcome to xConnect Outcome Event
Value to write to event objectProperty on event object
Constant value empty stringCurrencyCode
CustomValues from source objectCustomValues
DefinitionId from source objectDefinitionId
MonetaryValue from source objectMonetaryValue
DateTime from source objectTimestamp
If you have suggestions for improving this article, let us know!