Calling CRMscript as webservice from the outside world (Umbraco) but with data in the body as json

lock
push_pin
done
Besvaret
1

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?

1. jul. 2026 | 12.12 PM

Alle Svar (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());
1. jul. 2026 | 12.17 PM
That was fast, I could not even eat a ice before you answered.
Thank you.
1. jul. 2026 | 12.25 PM

Tilføj svar