Use case:
- On my scheduler, I have a custom field as
Phone number
as a required field, how can I get that information on a successful booking?
Solution:
-
Using
thank_you_redirect
feature of the Scheduler.
-
Specify a URL: Specify a URL for users to visit after completing the Scheduling booking. Use the
thank_you_redirect
booking configuration in theappearance
object as below.
Custom Thank You Page
-
{
"appearance": {
"thank_you_redirect": "https://mysite.com/thanks"
},
} -
Retrieve Information: On successful booking, the customer will be redirected to the above URL with all the information passed during the booking as below:
-
https://mysite.com/thanks?start_time=1568141000&end_time=1568142800&page_slug=mike-pfiser-45min&tz=America/Chicago&name=Guest&email=guest%40company.com&location=Event%40Location%40TBD&edit_hash=12aqwe412&additional_values={}
- Retrieve any information/details passed to the scheduler page as a query parameter from the above URL and use them accordingly.
-
Specify a URL: Specify a URL for users to visit after completing the Scheduling booking. Use the
-
Using the scheduler reminder webhooks
- Define an reminders endpoint location within scheduler via the /pages endpoint
- Set the reminder period as one week in the past for immediate delivery
- Parse the information
- Define an reminders endpoint location within scheduler via the /pages endpoint
- Using Nylas
/events
endpoint -
-
Listen to Nylas events webhooks: Listen to Nylas events webhooks as
event.created
orevent.updated
as per your use case.
-
Fetch the Event Information: Fetch the event information using Nylas
GET /events/{id}
endpoint. Return an event
- Parse the Information:: Parse the necessary information from the event description.3.3.
-
Listen to Nylas events webhooks: Listen to Nylas events webhooks as
Resources
Scheduler Reminder Webhooks
Return an event
Updated
Comments
0 comments
Please sign in to leave a comment.