Domino REST POST not working for Appointment - Note Item not found

六眼飞鱼酱① 提交于 2019-12-02 13:33:26

For Domino 8.5.3, the data service is the only REST service available.

It gets better in Domino 9.0. That gives you the option of using the extension library from OpenNTF to install the Domino calendar service. The calendar service is much better suited to your use case. It doesn't require in-depth knowledge of the Notes C&S schema and automatically handles scheduling workflow as you create, update and delete events.

Also, the calendar service is built into Domino 9.0.1. So 9.0.1 doesn't even require a separate extension library install.

However, assuming you are constrained to 8.5.3 and the data service, I have an idea what is causing the "incorrect data type for operator" error. Your JSON input is defining each data/time item as a plain string. You might have better results declaring the data type like this:

"CalendarDateTime": {
  "data": "2014-02-17T18:00:00Z",
  "type": "datetime"
}

So you could try explicitly declaring the data type for each date/time item, but I personally have never tried to create a calendar event with the data service. Even if you get past this error, I wonder if there will be more problems ahead.

You are missing at least two items: StartDateTime (a combination of Startdate and StartTime) and EndDateTime (guess...).

Check out the Calendaring and Scheduling Schema to find out other missing items.

In addition you can check the data types of the items in the document (Alt - Enter on the document in the calendar view), as they might be of type text. Then change your code as suggested by Dave.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!