I have a public calendar that I am trying to display as a VisualForce Page in Lightning. The code is very basic but I am getting the error that it is unavailable in Lightning.

I have checked the box to make it available and have added the Tab to my Lightning Apps that I want to use. What could I be missing?


public with sharing class CH_Public_Calendar_Controller {
public String calendarId {get; set; }
public CH_Public_Calendar_Controller () {
    calendarId = Calendar__c.getValues('PubCalendar').CalendarId__c;



<apex:page controller="CH_Public_Calendar_Controller" action="/00U/c?cType=1&cal_lkid={!calendarId}&md0={!YEAR(TODAY())}&md1={!MONTH(TODAY())-1}">

Please wait...


This does not seem to be something that should be this difficult. Any assistance would help.

  • Take a look at this doc help.salesforce.com/… one of the constraints i see is "you can’t view public calendars or resource calendars created in Salesforce Classic." – Rao Jun 8 '17 at 18:16
  • Any ideas on public calendars for Lightning that are good work arounds? – JP Blonshine Jun 12 '17 at 14:56
  • salesforce.stackexchange.com/questions/115396/… Take a look at the solution here. You should be able to build a calendar component in no time and put it on your lightning pagelayout – Rao Jun 12 '17 at 18:01

Using the FullCalendar is what I resorted to to complete this task.

Render fullcalendar on a lightning component

| improve this answer | |
  • did your code work without moment.js in the proposed answer? I couldnt get it to work without including moments.js file, just curious – Rao Jun 14 '17 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.