Hello,
We have a custom web application that manage events and we try to make it sync with our D365 Marketing Event management system.
Events are created and managed in our custom web app.
Through API, we can retrieve all events of D365 :
GET https://xxx.dynamics.com/api/data/v9.2/msevtmgt_events?$select=msevtmgt_eventid,msevtmgt_name&$count=true
We can also retreive single event (filter by eventid) :
GET https://xxx.dynamics.com/api/data/v9.2/msevtmgt_events?$filter=(msevtmgt_eventid eq xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or GET https://xxx.dynamics.com/api/data/v9.2/msevtmgt_events(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
But we are unable to create or update an event :
PATCH https://xxx.dynamics.com/api/data/v9.2/msevtmgt_events(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) data = { "msevtmgt_name":"Test", "tc_venue":"My best place" }
(same with data in JSON or form-data format)
We got this error :
The requested resource does not support http method 'PATCH'
And with POST method :
Unmapped Request found, PathTemplate:~/entityset/key, HtppVerb:POST
We try also through webhook :
POST https://xxxxxxxxxxxxxx.svc.dynamics.com/EvtMgmt/api/v2.0/events/{readableEventId}?emApplicationtoken=xxxxxxxxxx data = { "eventName":"Test" }
And we got 404 error... (same with PATCH method)
Maybe someone has an idea to help us ?
Thanks in advance,
Serge