generateIdentityTransferUrl
tid
parameter to use in the App programmatically by calling the following:generateIdentityTransferUrl(url: MXOValue<URL | string>): Promise<MXOResult<string>>
Example of usage:
const urlValue = {
value : 'https://exampleUrl'
}
MedalliaMXO.generateIdentityTransferUrl(urlValue)
.then(mxoResult => {
if (mxoResult.value && mxoResult.value.apiName) {
// error case
console.error(mxoResult.value)
} else {
// success case
console.log("URL with TID: ", mxoResult.value)
}
})
.catch(error => {
console.error(error)
})
try {
const urlValue : MXOValue = {
value : 'https://exampleUrl'
}
const {value} = await MedalliaMXO.generateIdentityTransferUrl(urlValue)
if (value && value.apiName) {
// error case
console.error(value)
} else {
// success case
console.log("URL with TID: ", value)
}
} catch (error) {
console.error(error)
}
Once you have the URL with tid
query parameter, pass this into the method that handles the opening of the URL.