Question:
I am trying to get a list of RSVPs to an event using rsvp.listRsvp
When I look at the payload in the console I can see that the total number of RSVPs is accurate however the rsvps property shows zero. See screen print
Below is the code
const elevatedListRsvp = elevate(rsvp.listRsvp);
export const getEventRSVP = webMethod(Permissions.SiteMember, async (eventid) => {
let fieldsetOptions = [rsvp.RsvpFieldset.FORM];
let options = {
“eventId”: [eventid],
“fieldset”: fieldsetOptions
};
try {
const result = await elevatedListRsvp(options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
});
I was expecting to see the form details of each Site Member that has rsvp’d.
What am I doing wrong?