I'm a developer trying to integrate schedule callback feature using NodeJS sample code,
require('dotenv').config()
const platformClient = require('purecloud-platform-client-v2');const id = process.env.GENESYS_CLOUD_CLIENT_ID;
const secret = process.env.GENESYS_CLOUD_CLIENT_SECRET;// Set Genesys Cloud objects
const client = platformClient.ApiClient.instance;
const conversationsApi = new platformClient.ConversationsApi();// Set Genesys Cloud settings
client.setEnvironment('mypurecloud.jp');
client.setPersistSettings(true, 'test');// Authenticate with Genesys Cloud
client.loginClientCredentialsGrant(GENESYS_CLOUD_CLIENT_ID, GENESYS_CLOUD_CLIENT_SECRET)
.then(() => {
console.log('Logged in');const callbackData = { routingData: { queueId: 'myqueueid' }, scriptId: null, callbackUserName: 'Tutorial Callback', callbackNumbers: [ '3172222222' ], data:{ customDataAttribute: 'custom value' } }; return conversationsApi.postConversationsCallbacks(callbackData);
})
.then((res) => {
console.log('callback created: ', res);
})
.catch((err) => console.error(err));
I got a response like this,
{ conversation: { id: '<id>', selfUri: '/api/v2/conversations/<id>' }, callbackIdentifiers: [ { type: 'EXTERNAL', id: '<id>' }, { type: 'ACD', id: '<id>' } ] }
But created callback wasn't listed under the scheduled callback page, I logged in as master admin,
https://apps.mypurecloud.jp/directory/#/engage/admin/scheduledCallbacks
Why it doesn't list created callbacks in my page? Or any other settings or permission required to show in the page?
Please help.