sendProperties

Besides sending programmatic Interactions to Medallia Experience Orchestration, you can also send defined programmatic Properties to a base Touchpoint or a preconfigured Interaction path. sendProperties(request: MXOInteractionRequest): Promise<MXOResult<MXOInteractionResponse>>

Example of usage:

JavaScript
TypeScript
const interactionRequest = { interaction : 'react://touchpoint/interaction', properties : { 'key1':'value1', 'key2':'value2' } } MedalliaMXO.sendProperties(interactionRequest) .then(mxoResult => { if (mxoResult.value && mxoResult.value.apiName) { // error case console.error(mxoResult.value) } else { // success case console.log("Properties are sent to an Interaction: ", mxoResult.value) } }) .catch(error => { console.error(error) }) try { const interactionRequest : MXOInteractionRequest = { interaction : 'react://touchpoint/interaction', properties : { 'key1':'value1', 'key2':'value2' } } const {value} = await MedalliaMXO.sendProperties(interactionRequest) if (value && value.apiName) { // error case console.error(value) } else { // success case console.log("Properties are sent to an Interaction: ", value) } } catch (error) { console.error(error) }
Tip: When sending Properties to a programmatic Interactions, ensure the interaction is a fully qualified URI, containing the scheme, authority, and path. For example, react://touchpoint/interaction.