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
Goverdhan JayaramGoverdhan Jayaram 

Calendar in visualforce page

I have a requirement to retrieve a selected user's calendar on a visualforce page. Can anyone help ?
Andrew Wilkinson 2Andrew Wilkinson 2
Without rebuilding your own, you may be able to utilize an iframe. For a specific calendar the url looks like the following:

https://servername.salesforce.com/00U/c?cType=1&cal={!personsName}&cal_lkid={!userId}&cal_lkold={!personsName}&cal_lspf=1&md0={!year}&md1={!month}

You can change the cType in the url to dispaly the day/week/month views. I pulled this url from a monthly view.