function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JenelleMarieJenelleMarie 

Embed Public Calendar on Home Page

Does anyone know how to embed a Salesforce public calendar on the home page?  I am currently using a link but I believe it would be much for beneficial for our reps to see the public calendar displayed upon logging in.

 

Thanks!

Pradeep_NavatarPradeep_Navatar

Salesforce public calender is a standard home page component so you can change home page layout for DE Default and put calender in Wide (Right) Column.

 

Hope this helps.

JenelleMarieJenelleMarie

Thanks but we already have the calendar component enabled.  I just wasn't sure if there was a way to change the default calendar from your personal calendar to a public calendar.

 

Let me know if you have any ideas!

clouduserclouduser

I have achieved the public calendar as below..
create a vf tab using below vf page:
------------------
<apex:page controller="CalendarController" action="/00U/c?cType=1&cal_lkid={!calendarId}&md0={!YEAR(TODAY())}&md1={!MONTH(TODAY())-1}">
Please wait...
</apex:page>

apex class:
-------------------------
public with sharing class CalendarController {
public String calendarId {get; set; }

public CalendarController () {
calendarId = CalendarsList__c.getValues('PubCalendar').CalID__c;
}
}

CalendarsList is the public custom setting of List type with the field CalID__c which holds the ID of the public calendar..

let me know if you need additional details..thanks