contactSearch embeddable framework

Hi all ,
since yesterday I use the contactSearch function in my embeddable framework in this way
contactSearch: function (searchString, onSuccess, onFailure) {
contactSearchCallback = onSuccess;
window.parent.postMessage(
JSON.stringify({
type: "contactSearch",
data: { searchString: searchString },
}),
"*"
);
},

and it works perfectly.

Today is not working anymore and for this reason, it's not possible to do outbound calls ...

To solve it, I must use the sample contactSearch function
contactSearch: function (searchValue, onSuccess, onFailure) {
onSuccess ([{
type: "external",
name: "",
phone: [{
number: "",
label: "Cell"
}],
attributes: {example_urlpop: "url"}
}]);
},

Do you have any idea about this behaviour? Why is suddenly changed?

@FrancescaOrsini
To clarify, is your updated function allowing you to do outbound calls? The updated function looks correct when comparing to the documentation for contactSearch
https://developer.genesys.cloud/platform/embeddable-framework/configMethods/contactSearch#onsuccess-array

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.