Hello,
I need to implement a test class in salesforce to cover the code of another class that uses a APICall to purecloud.SDK.
Does anyone know what the mockcallout class is called in purecloud.sdk?
I have tried to put the standard class but it does not work, it returns an error that a test class cannot make Callout calls.
The class has the following code
I have a campaign member insertion class in Genesys automatically that makes this call:
public static ResultGenesysToolkit insertCampaignMember (List lMember, Boolean priority) {
//Load parameters on variables....
response = purecloud.SDK.Rest.post(URL,JSON.serialize(lObject));
from another @invocable class, I call a @future method to make the call to
// call to Genesys
lResult = GenesysToolkit.insertCampaignMember(lInsert, w.priority);
Any help with this?
Thanks in advance