Hi,
We are trying to implement a batch process in salesforce to load the information of unproductive calls.
To do this, we have created a class that calls purecloud.SDK.Rest.post(url,JSON.serialize(payload)) with endpoint /api/v2/analytics/conversations/details/query and the filter to only fetch abandoned calls.
When the function that calls the rest api is executed, it works correctly, but when calling it from the batch process, we get an error in the class
Class.purecloud.RestClient.checkCalloutLimits: line 13, column 1
Class.purecloud.RestClient: line 84, column 1
Class.purecloud.RestAPI.Util: line 60, column 1
Class.purecloud.RestAPI.Util.post: line 55, column 1
Is there any limitation in this regard?
Are we doing something wrong?
This is the call for batch process
// data retrieve
- global Iterable<ConversationWrapperIterator.ConversationWrapper> start(Database.BatchableContext bc) {*
-
-
List<ConversationWrapperIterator.ConversationWrapper> lWrapper = new List<ConversationWrapperIterator.ConversationWrapper>();*
-
*
-
//Retrieve data*
-
GenesysToolkit.ResultGenesysToolkit resp = GenesysToolkit.getConversations();*
Best regards