Can someone recommend me a way of how to handle booking / appointments for a custom object for community users? Essentially, we've got assets that we rent out, and I somehow need to have a booking functionality for renting these assets. Users should be able to book a time/date for when they wish to use this specific assets.

The Calendar itself would be perfect if I could embed that in a lightning component and share it with an entire community - however, it seems very limited in this sense.

Any guidelines / directions I can take?

Thanks in advance!


1 Answer 1


We've been doing something similar where we schedule a custom object as a resource using https://fullcalendar.io/ (specifically the Scheduler part in our case).

We have a junction object between our custom object and Contact to represent the appointments, and render these on the calendar using this plugin.
See this answer by Praveen for more information on how to load this plugin and used it in a Lightning Component. You do need some developer skills though.

To add calendar items to the calendar, you could try one of the callbacks that fullcalendar provides. We use the select callback to enable drag-and-drop, but you could use others like dayClick as well of course:

select: $A.getCallback(function(start, end, jsEvent, view, resource) {
    // handle your logic to send the data to the server
    helper.handleNewEvent(start, end, resource);
  • Thanks, I've been looking into FullCalendar as well, but I can't find any documentation on how to add bookings through the calendar - all I can get it to do is display things - have you found a way to create appointments directly in it the calendar?
    – erikvm
    Jun 27, 2018 at 8:49
  • I've added some example code to the answer @erikvm
    – Folkert
    Jun 27, 2018 at 8:57
  • Thanks for your help Folkert, I will explore Scheduler a bit more, it looks promising. How hard would you say it was to implement it and have it being used with a custom object? Ideally, the scheduler would have "Account" as a top category, and then list all its Asset below in that dropdown functionality.
    – erikvm
    Jun 27, 2018 at 9:29
  • It wasn't that hard, if you follow the instructions in the above mentioned answer and if you have some experience with Lightning. The hardest part was in figuring out that I needed to use the $A.getCallback() to make it work.
    – Folkert
    Jun 27, 2018 at 20:20
  • Thanks, could you show a real life example? Not really sure where to take it from here
    – erikvm
    Jun 28, 2018 at 8:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .