I saw this https://community.superoffice.com/en/technical/blogs/archive/building-custom-rest-api-methods-using-crmscript/?epslanguage=en
And it works out of the box you could say.
But I need a big chunk of data in the body of the request, can I do that?
All Replies (1)
getCgiContent returns the incoming body of the request, if you build a CRMScript structure that mirrors the incoming event payload, you can convert it to JSON immediately.
Struct Event
{
Integer Id;
String Title;
// etc
};
Event[] incomingEvents;
incomingEvents.fromJsonString(getCgiContent());