Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
How to retrieve events for ALL users within date range
Given a start date and a stop date, I want to retrieve a list of all events in the system in that date range, regardless of user.
I'm using this code. No mention of organizer, resource, etc. anywhere, so I would assume it would do what I want. But it doesn't. All of the events are "public." How can I get all "public" events?
Thanks.
CalendarEventSearch eventSearch = new CalendarEventSearch(); CalendarEventSearchBasic eventSearchBasic = new CalendarEventSearchBasic(); SearchDateField searchDate = new SearchDateField(); searchDate.@operator = SearchDateFieldOperator.within; searchDate.operatorSpecified = true; searchDate.searchValue = start; searchDate.searchValueSpecified = true; searchDate.searchValue2 = stop; searchDate.searchValue2Specified = true; eventSearchBasic.startDate = searchDate; eventSearch.basic = eventSearchBasic; NsSearchResult results = nsSvc.search(eventSearch);
0