Sending Properties to MXO

Besides sending programmatic Interactions with Properties to Medallia Experience Orchestration, you can also send defined programmatic Properties to a base Touchpoint or a preconfigured Interaction path.

Tip: When sending Properties to a programmatic Interactions, please ensure the Interaction starts with a / and only contains letters, numbers and/or dashes.

Defining Properties

Define Properties you want to send to Medallia Experience Orchestration as a dictionary of String/String key-value pairs as shown bellow.

const properties = {
    	properties: {
      		key1: 'value1',
      		key2: 'value2'
	}
}

After the Properties are defined, they can be sent to Medallia Experience Orchestration by calling the SDK's public methods from the below sections.

Sending Properties to a base Touchpoint

To send Properties to a base Touchpoint, call the following public method passing a dictionary of defined Properties to it:

const interactionRequest = {
    	interaction: '/',
	properties: properties
}
MedalliaMXO.sendProperties(interactionRequest).then(() => {
	// do something after the properties get sent
})
.catch((error) => {
	// do something with error
	console.error(error)
})

This sends a PUT request to Medallia Experience Orchestration.

Important: Properties sent to a base Touchpoint will be captured under a base (/) or wildcard (/*) Interaction in Medallia Experience Orchestration. The Attribute Capture Point API name in Medallia Experience Orchestration, must match the key name sent above.

Sending Properties to an Interaction

To send Properties to a specific Interaction, call the following public method, passing a dictionary of defined Properties and providing the Interaction path:

const interactionRequest = {
    	interaction: 'cordova://app-test/interaction1',
	properties: properties
}
MedalliaMXO.sendProperties(interactionRequest).then(() => {
	// do something after the properties get sent
})
.catch((error) => {
	// do something with error
	console.error(error)
})

This will send a PUT request to Medallia Experience Orchestration.