A backend event that fires when an RSVP is deleted.
The onRsvpDeleted()
event handler runs when an RSVP is deleted.
The received RsvpDeletedEvent
object contains information about the deleted RSVP.
Note: Backend events are not fired when previewing your site.
function onRsvpDeleted(event: RsvpDeletedEvent): void;
Information about the RSVP that was deleted.
// Place this code in the events.js file
// of your site's Backend section.
// Add the file if it doesn't exist.
export function wixEvents_onRsvpDeleted(event) {
let eventId = event.eventId;
let rsvpId = event.rsvpId;
}
/* Full event object:
* {
* "timestamp": "2020-04-27T13:37:22.444Z",
* "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
* "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
* "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
* "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
* "anonymized": false
* }
*/
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.