Skip to main content

Questions tagged [whatid]

The tag has no usage guidance.

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

"Preselect" the object type for "WhatId" on a Global Action to create a new event?

I have a Global Action to create a new Event record, and I would like to be able to specify (or preselect) that the Related To lookup field (WhatId) should be Account. When this action is launched ...
Lara Wasowski's user avatar
0 votes
1 answer
881 views

How do I set whatid to a custom object

I can’t set the what Id to the Id of a custom object. This has been asked before, but the answers aren't helping me: So many failures Including this one I took a picture of my custom object setting: ...
Henrietta Martingale's user avatar
1 vote
0 answers
545 views

Getting parent record id as undefined in SF1

There is a custom obj, and i am trying to create a record from it's related list and it has aura component embedded with LWC. Now, I need to get the parent record id while creating a record from ...
Sab__Dev's user avatar
  • 213
2 votes
0 answers
1k views

Best way to get the custom object type of a WhatId in a Flow

I'm working on a Task record-triggered flow and I need to evaluate the WhatId to see what the object type is. As I see it's not directly available. I'm wondering if what the best solution would be. I ...
Andrew L.'s user avatar
  • 857
1 vote
1 answer
438 views

WhoId, OwnerId and WhatId CSV Headers?

Polymorphic & Relationship Fields I'm trying to insert a task via Bulk API and providing the below csv headers, but getting Malformed_ID error. Owner:User.FederationIdentifier Contact:Who.Id ...
Sid's user avatar
  • 305
2 votes
3 answers
1k views

Field Event.WhatId does not exist. Excuse me?

Using SOQL I can see that there is a field called WhatId for the Event object. But if I want to use this field in a URL hack, I get the error 'Field Event.WhatId does not exist'. I googled a but, so ...
Sander de Jong's user avatar
0 votes
2 answers
1k views

Referencing WhatID in tasks?

I have a lookup on Teams called Managers (User Lookup). When a task related to Teams is completed, I want to update a field on tasks called match and also update a field on Teams called completed ...
J.koh's user avatar
  • 189
0 votes
2 answers
768 views

How Can I Reparent a Task Associated with a ListEmail Using Apex?

We are trying to move a task from one contact to another in a trigger. The Task is created by ListEmail functionality. We are getting an exception when re-assigning the WhoId. Exception: Update ...
A. Miller's user avatar
0 votes
1 answer
1k views

Merge field not populating

This is my code to send an email in apex. I have created a text Email Template where i need to use first name from contact. How ever the {!Contact.firstname} field is not populating.When i press "send ...
New's user avatar
  • 39
-1 votes
1 answer
861 views

WhoID and WhatID

what is diffrence between whoid and whatid in salesforce? I tried reading the diffrence from sources and could not understand. PLease help me in understanding. Thanks in advance
Bharadwaj's user avatar
1 vote
1 answer
2k views

SingleEmailMessage limit

Below links says we can send up to 100 recipients for the To field in Salesforce. https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/...
sfdc's user avatar
  • 13.7k
0 votes
1 answer
7k views

Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION [WhatId]

Hoping someone can help me out. I'm a bit new here. Error message and Apex class provided below. I have a trigger that fires after a user creates a new note in Notes & Attachment resulting in a ...
toddk's user avatar
  • 43
4 votes
1 answer
957 views

Lightning Opencti savelog does not update WhoId on Task

In Lightning Winter'17 Org, with OpenCti API 38 and Integration API 38, when I call from the developer console the sforce.opencti.saveLog({Value:{entityApiName:'Task',Id:'00Txxxxxxxxxxxx',WhatId:'...
Javi's user avatar
  • 90
0 votes
1 answer
1k views

Set WhatId in Task before insert (or update eventually) trigger

We have an APP that create tasks. Some of them should be related to accounts. Sometime the whatid is null so the task is linked to nothing. We have a custom field in task object that contains ...
Guillaume's user avatar
  • 115
4 votes
1 answer
3k views

Apex - Task.What.Type

Need a little help. I can't figure out the correct syntax to utilize Task What.Type in my trigger. Can someone tell me what I am doing wrong? trigger ININRelatedToFix on Task (after Insert, after ...
Matt M's user avatar
  • 1,477
2 votes
1 answer
5k views

How to relate WhatID field of Task object with custom object

hi I am learning Salesforce. I have created trigger for my custom object. I have an error the following type: Error: Compile Error: No such column 'Theme__c' on entity 'Task'. If you are ...
Jack's user avatar
  • 21
4 votes
1 answer
3k views

Use fields from WhatID object in Email Template

I have apex code that sends out emails using templates. The code sets the RelatedTo id as a contact, and the WhatID as a custom object which is a child of contact. Sometimes the child object is a ...
hgolov's user avatar
  • 773
4 votes
1 answer
3k views

Email not being send if whatID is set and setSaveAsActivity is true

I have the following code if (this.templateId != null) { // parameters specific for visualforce template singleEmailMessage.setTargetObjectId(this.targetObjectId); ...
Anamika's user avatar
  • 73
4 votes
2 answers
1k views

Null Pointer Exception add AccountId to WhatId for Task

Trying to build what I thought would be a simple trigger: when a task is created that is only related to a contact (WhoId = contact type, but WhatId = null), relate the task's WhatId to the contact's ...
mlpSFadmin's user avatar
3 votes
2 answers
801 views

WhatID null for Activity Tasks created from bcc to salesforce

When our users leverage the email-to-saleforce feature that allows them to bcc emails to salesforce, those emails are added as Tasks of type 'Email' in the Activity History related list for relevant ...
Thomas Graves's user avatar
1 vote
2 answers
2k views

Updating WhatId on Activity when Opportunity is Created

Here's something that I'm trying to do which I feel as though I've made it 75% of the way through. Right now let's assume I have the ability to generate an opportunity when a certain action is ...
Dylan's user avatar
  • 67
2 votes
2 answers
3k views

SingleEmailMessage SetWhatId with Quote Id

I am currently recreating much of the OOB Quote functionality in Apex and I am almost complete. Now there is just one other hurdle, the Email Quote functionality. Now, it doesn't seem like an issue......
Programmable Medley's user avatar
0 votes
1 answer
734 views

Problem setting WhatId with a custom object ID

I have the following error : Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION ... [WhatID] When I'm trying to create an Event setting the WhatId field with a ...
SF_user's user avatar
  • 3,636