I created a method that opens Screen Flow for me. The script is below.
window.sforce.opencti.screenPop({
type: window.sforce.opencti.SCREENPOP_TYPE.FLOW,
params: {
flowDevName: 'FlowName',
flowArgs: [
{"param_1": "159357852"}
]
},
callback: function (response) {
console.log(response);
if (response.success) {
console.log('Flow is open.');
} else {
console.error('ErrorscreenPop:', response.errors);
}
}
});
Flow is opened in a new tab but no parameters are passed to it. The variable to which I want to send the value is available (Available for input is checked).
What else is affecting this not working properly? Everything is done the same as in the documentation https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_screenpop_lex.htm