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

relate multiple contacts to activities in custom visualforce page

In our Salesforce org, under "Activity Settings", the feature "Allow Users to Relate Multiple Contacts to Tasks and Events" is enabled. However, this seems to work only standard page layout when I click on "Log an Activity". We have a custom button to create an activity for a specific record type. On the name field (WhoId) on the page layout for the activity, it is presenting only a lookup popup where I can select only one contact or lead, However, on the standard page layout on actiivty, it is displaying a popup where I can select multiple contacts or leads (up to 50). Is there anyway I can show the same popup on the custom visual force page where I can associate the activity to multiple contacts or leads? Below are the screenshots of the custom page layout page popup and the standard page layout popup.

Lookup Popup on custom page:
Lookup Popup on Custom Visualforce page.

Lookup Popup on standard page:
Lookup Popup on Standard page.

Can someone help?
Shaan Kastuar 37Shaan Kastuar 37
Hey @BPOOR - did you ever end up getting an answer for this?
Hi @Shaan Kastuar,

No, it never worked out and our Business stakeholders finally said they don't need this functionality due to the impact of setting it up with multiple reports.