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
Crystal SchmandtCrystal Schmandt 

Does the visualforce page allows to hide activity history record if created by another user? could you please provide a sample code?

Does the visualforce page allows to hide activity history record if created by another user? could you please provide a sample code? 
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Crystal

How are you showing the activity history in your VF page? 

Cheers!!!
Crystal SchmandtCrystal Schmandt
How do I get that inforamtion? 
Syed Insha Jawaid 2Syed Insha Jawaid 2
You can open or share the code snippet of your VF page.

Cheers!!!
Crystal SchmandtCrystal Schmandt
I apologize, I'm not familar with the VF page. Would you be able to provide each step?

Should there be an Activity History option under the Label  column in the VF pages? If so, I dont see that. Would it be under something else?  
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Crystal

You need to search the Visual force page name in developer console and then paste the snippet in here.

Cheers!!!
Crystal SchmandtCrystal Schmandt
I dont have a VF page for this object. I need one created. Would you be able to assit with this? Or can you provide a sample code to create it and I will find a developer to do so? 
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Crystal

If you wish to create a new VF page then follow these steps:
1. Create a controller class with sharing enabled and query the activity records.
2. Query the record using the recordId passed as URL paramenter
3. Assign the list to class member
4. Use the class member list variable on the markup.

Cheers!!!