setIdentityTransferConfiguration
setIdentityTransferConfiguration(config: MXOIdentityTransferConfiguration | null): Promise<MXOResult<null>>
Example of usage:
const config = {
disableIdentityTransfer : false,
includeList : [{
value : 'https://mywebsite.com'
}],
excludeList : [{
value : 'https://mywebsite2.com'
}]
}
MedalliaMXO.setIdentityTransferConfiguration(config)
.then(mxoResult => {
if (mxoResult.value && mxoResult.value.apiName) {
// error case
console.error(mxoResult.value)
} else {
// success case
console.log("Configuration is set")
}
})
.catch(error => {
console.error(error)
})
try {
const config : MXOIdentityTransferConfiguration = {
disableIdentityTransfer : false,
includeList : [{
value : 'https://mywebsite.com'
}],
excludeList : [{
value : 'https://mywebsite2.com'
}]
}
const {value} = await MedalliaMXO.setIdentityTransferConfiguration(config)
if (value && value.apiName) {
// error case
console.error(value)
} else {
// success case
console.log("Configuration is set")
}
} catch (error) {
console.error(error)
}