Legacy Knowledge Base
Published Jul. 2, 2025

How to programmatically get the list of calendar event invitees

Written By

Sorin Pop

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I want to get the list of users that accepted an invitation to an event (but programmatically, not by viewing the event on the UI)

Environment

  • DXP 7.2

Resolution

- in the background, calendar events are called calendar bookings (so look for classes like CalendarBooking*, CalendarResource*. Java APIs might be also helpful)
- when a user invites other user to an event, for every invitation a new calendarbooking is created in the background
- and the invited users are handled as calendar resources
- here is a code snippet responsible for fetching invitees

https://github.com/liferay/liferay-portal/blob/master/modules/apps/calendar/calendar-web/src/main/java/com/liferay/calendar/web/internal/portlet/CalendarPortlet.java#L1286

- we can see here that the getChildCalendarBookings() reutrn the booking belonging to the invitations,
- and the getCalendarResources() method returns the invited users

 

Did this article resolve your issue ?

Legacy Knowledge Base