Page events - outcomes

Abstract

Guide to how outcomes are mapped from Sitecore 8.x to 9 in xDB Migration Tool.

Note

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

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"
            }
        ]
    }
}

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.

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 object

Document from the Outcome collection whose InteractionId value matches the interaction

Event mapping definition

Event Mappings for MongoDB Outcomes > General Outcome

Event object type

Sitecore.XConnect.Outcome

Field mapping definition

MongoDB to xConnect Outcome Mappings > MongoDB Outcome to xConnect Outcome Event

Value to write to event object

Property on event object

Constant value empty string

CurrencyCode

CustomValues from source object

CustomValues

DefinitionId from source object

DefinitionId

MonetaryValue from source object

MonetaryValue

DateTime from source object

Timestamp