Questions tagged [shared-activities]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Possible to enfore Shared Activities through managed package

I have an external application that depends on a user installing my managed package to create some custom fields etc. My external application creates calendar events and allows the user to add ...
rosghub's user avatar
  • 217
0 votes
1 answer
458 views

Apex Query to TaskWhoRelation

Here is my code. Need help to find the right way to check IF logic with TaskWhoRelation.relationId instead objTask.WhoId. Any type of help will be grateful. set<Id> setIds=new set<Id>(); ...
sfdchelper's user avatar
0 votes
1 answer
151 views

How to get Activity History when SharedActivities is enabled/disabled

I execute the following query to get activity history for an account SELECT (SELECT Id, IsTask, ActivityDate, ActivitySubtype, Subject, Owner.Name,PrimaryWhoId,WhatId,PrimaryWho.Name, What.Name ...
GorillaApe's user avatar
0 votes
1 answer
2k views

how to get the list of contacts that are associated for an events

hi all i have created an event with multiple contacts and then when i was trying to get the list contacts that are associated with an event in SOQL the result only first contact is returning i.e ...
 Prashanth Reddy's user avatar
0 votes
0 answers
242 views

Unable to change WHOID of Event with Shared Activities are enabled

I'm getting the below error, whenever i'm trying to update the WHOID of the Event. Update failed. First exception on row 0 with id 00U3600000MA8x4EAD; first error: INVALID_CROSS_REFERENCE_KEY, ...
Hemant Keni's user avatar
1 vote
1 answer
57 views

Getting info on files that were shared between dates [closed]

I'm fairly new to Salesforce API, I'm trying to get information on files that were shared between dates. I would like to know how to retrieve this info using REST API. Is it even possible to query ...
Evgeny's user avatar
  • 113
4 votes
2 answers
2k views

Enable SharedActivities automaticaly for new scratch org

Is there any chance to set up scratch org definition file, to create new scratch orgs with SharedActivities functionality enabled? We just implemented some functionalities using TaskRelation object, ...
patryk's user avatar
  • 645
0 votes
2 answers
728 views

Share a Post on behalf of some-other user

I am having requirement to share a Post on behalf of some-other user(Integration User), I am trying to acheive this through Apex Connect Api. But post is shared using the logged in user. I Refered ...
Naresh's user avatar
  • 85
2 votes
0 answers
2k views

Relating Task to Multiple Accounts

Is it possible to relate a task to multiple accounts? I am not wanting to relate to multiple contacts within accounts. I want to pull agreement information into salesforce, and the relationship is ...
Chance's user avatar
  • 1,060
0 votes
1 answer
116 views

Package installation fails to org's with Shared Activies disabled. "Invalid field TaskWhoIds for SObject Task"

I have a problem where the package installation fails to organisations that has Shared Activity disabled. As far as I understand the case is that TaskWhoIds is not available on orgnaisations that has ...
Hituc's user avatar
  • 11
2 votes
1 answer
707 views

Adding or Updating EventRelation on Shared Activities in Flow

I built a visual workflow for a meeting rescheduling process. The flow needs to be handled by anyone, not just the meeting creator. The flow is called from the Event object itself. Note that Share ...
Jeff Berger's user avatar
2 votes
2 answers
259 views

Issue with handling Shared Activities enabled/disabled in managed package

I have a managed package and I wanted to create or update tasks through Apex. We also would like to include this in managed package. While researching I found that to update WhoId field of tasks ...
Nakul's user avatar
  • 83
3 votes
0 answers
578 views

Custom Visualforce Page for Shared Activities

I'm trying to create an inline Visualforce page to substitute for the standard 'Name' related list on Shared Activities. The problem I am trying to solve is getting more information that just the ...
jshea's user avatar
  • 93
1 vote
0 answers
23 views

Some Contacts not appearing in "Select Contacts" tool for Shared Activities

Some of my users are complaining about certain contacts not showing up in the Contact search when Shared Activities is enabled. The one contact I can reliably duplicate this bug with is a contact ...
Charles Koppelman's user avatar
2 votes
0 answers
463 views

ContentDocumentLink to get recently unshared FileIds for Files tab

Whenever a File in files tab is updated (title renamed, description), ContentDocument field 'LastModifiedDate' is updated. For share activity on any file, ContentDocument's field 'LastReferencedDate' ...
user1986059's user avatar
2 votes
2 answers
1k views

Error inserting TaskRelation records

I have a client who wants the ability to clone a task that has multiple contacts. They would make slight changes to the cloned task (Assigned To, etc) but the multiple contacts would remain the same. ...
David Cheng's user avatar
  • 7,070
1 vote
1 answer
2k views

How do I access Shared Data Extension using Server Side Javascript?

I am trying to access Shared Data Extension using Server Side Javascript. I am trying the below stated code but it is not working. Even though the Data Extension has more than 1 record, the length I ...
Sanchit Mittal's user avatar
0 votes
1 answer
200 views

Unable to load ActivityHistory for shared activities in APEX

I'm using APEX to load ActivityHistory records for Contacts. However, in an org using shared activities I find that my query only returns records for which a contact is the primary 'WhoId' -- not the ...
Jelle van Geuns's user avatar
4 votes
1 answer
2k views

How can I update Tasks via API in an org with 'Shared Activities' enabled?

“I've adapted Scott Hammeter's dandy code (http://sfdc.arrowpointe.com/2009/10/06/associate-email-to-salesforce-task-to-opportunity/) so I can relate the tasks created by inbound Email-to-Salesforce ...
Scott_in_London's user avatar
2 votes
2 answers
783 views

Why do Queries on Tasks not return records when multi-connect is enabled?

I have a visualforce page and controller in a development org with multi-connect to tasks (shared activities) enabled. If I query a task with multiple connected contacts through that page it returns 0 ...
Greg Grinberg's user avatar