Questions tagged [taskrelation]
The taskrelation tag has no summary.
12 questions
1 vote
1 answer
137 views
Due Date Task object not appearing in Quick Action not appearing
I am struggling here, I am trying to have my page layout with due date appear when creating a new task based off a custom quick action on Opp. Its confirmed on the page layout, permission to it, etc ...
1 vote
1 answer
452 views
Didn't understand relationship 'TaskRelations' - Allow Users to Relate Multiple Contacts to Tasks and Events
Does anyone know how to fix that? What am I missing here? I need to access the TaskRelations object on my scratch org. AFAIK, it should be available when the Allow Users to Relate Multiple Contacts to ...
0 votes
0 answers
343 views
For My the "Allow Users to Relate Multiple Contacts to Tasks and Events" is disabled
I want to relate several contacts to mys task. And i know that fot rhis i should enable the "Allow Users to Relate Multiple Contacts to Tasks and Events" checkbox . However it is disabled ...
0 votes
1 answer
209 views
Query related Tasks does not work
I need to query all related tasks from a contact (currentRecordId) but my code below shows nothing. What I'm doing wrong? Map<Id, TaskRelation> relatedTasks1 = new Map<Id, TaskRelation>([...
1 vote
1 answer
715 views
Invalid bind expression type of Task for column of type Id
I tried to get all related tasks from the selected contact, but salesforce don't like my code. If I try to save I get the error: Invalid bind expression type of Task for column of type Id What I'm ...
0 votes
0 answers
45 views
Getting Attendees from TaskRelation and populate Names in a text field from Tigger.isBefore , Trigger.isUpdate
My first question here. I am having an issue with a trigger that I have spent hours trying to figure out. I would really appreciate some help to fix this issue which would help me to learn Triggers ...
0 votes
1 answer
511 views
Unable to update contacts using TaskRelation object after being removed from Task
Below summarizes the issue I am encountering around Tasks with contacts associated. Scenario 1: When a contact is removed from an existing task, the removed contact should look up all associated tasks ...
0 votes
1 answer
551 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>(); ...
0 votes
0 answers
118 views
Edit task whoId in Vf page
We have a requirement of editing a task whoid from VF page multi- select list(contacts).The page opens from task custom button. VF page code block: <apex:page standardController="Task" extensions=...
2 votes
1 answer
525 views
How to modify Contacts/Lead related to a Task with a TaskRelation upon Task Creation
We have some APEX code that relates Contacts and possibly a Lead to a Task using one or more TaskRelation objects. Therefore the pseudocode is: Database.SaveResult[] srList = Database.insert(newTasks,...
1 vote
0 answers
32 views
How to set a predefined object selected in Related To field of Task Object
I need to have the pre selected object to be Account. It is alphabetically ordered at the moment. This might be a salesforce limitation, so if you may have encountered the same, please let me know ...
3 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. ...