✨ Community just got smarter! Our all-new AI search is live! ask anything in the search bar, get instant answers.

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

lock
push_pin
done
Besvart
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 p.m.

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 p.m.
That was fast, I could not even eat a ice before you answered.
Thank you.
1. jul. 2026 | 12:25 p.m.

Legg til svar