Use Case for Getting a List of Events with Confirmed Status and that are Scheduled After a Date

Use the GET command and query with status and start date to retrieve the list of events.

          GET {{REST_SERVICES}}/record/v1/calendarevent/?q=status IS "CONFIRMED"&q=startdate AFTER "3/16/23" 

        

The following is an example of the response:

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/?q=startdate+AFTER+%223%2F16%2F23%22"
        }
    ],
    "count": 5,
    "hasMore": false,
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/103"
                }
            ],
            "id": "103"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/2"
                }
            ],
            "id": "2"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/203"
                }
            ],
            "id": "203"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/4"
                }
            ],
            "id": "4"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/calendarevent/3"
                }
            ],
            "id": "3"
        }
    ],
    "offset": 0,
    "totalResults": 5
} 

        

Related Topics

Event Use Cases
Use Case for Creating an Event
Use Case for Adding an Attendee to an Event
Use Case for Fetching Details of Events at a Location
Use Case for Deleting an Event

General Notices