Trying to get WebHooks to work in CRMScript, but can't seem to make it work in Online.
I suspect the API for CRMScript is not up to date?
Has anybody made it work or have any examples?
Here is my script:
String secret = "";
DateTime dt = getCurrentDateTime();
events = "contact.created";
events = "contact.changed";
events = "person.created";
events = "person.changed";
NSWebhook wh = agent.CreateDefaultWebhook();
result = agent.TestWebhook(wh);
log("Webhook succeeded with message: " + result.GetMessage());
When executing the script, it fails when initializing WebHook objects wit the following error message:
"EjScript::RunTimeException: An exception occurred in script: "Testwebhooks" at: line 10, char 1 Original exception: EjScript::ParserException: EjScript::Value::Value: cannot create variable of this type: NSWebhookResult"
Thanks in advance.
ADMIN EDIT: Moved to the Correct Forum