Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [emailmessage]

Represents an email in Salesforce.

Filter by
Sorted by
Tagged with
2 votes
0 answers
51 views

SingleEmailMessage Sends Email, but EmailMessage not associated With the Case

I'm using the following code to create a list of Messaging.SingleEmailMessage: List<Messaging.SingleEmailMessage> emailNotifications = new List<Messaging.SingleEmailMessage>(); for (Id ...
Ron Van Aken's user avatar
0 votes
0 answers
28 views

Create & Send EmailMessage through REST API

I am using the REST API to create an EmailMessage related to a Case. My goal is for this Email to be sent to the customer as if it was sent by a rep directly from the Salesforce UI, with all of the ...
Morgan Marchese's user avatar
-1 votes
1 answer
22 views

How to add a Custom button on EmailMessage record page?

I'm trying to add a button on a record page of EmailMessage sobject. This button have to open LWC. I've already realized that it is impossible to add quick action. But several articles claim that it ...
Marina's user avatar
  • 19
1 vote
1 answer
63 views

Printing Email Messages (via Visualforce)

How can I print email messages via Visualforce?
Liam Heppenstall's user avatar
-1 votes
1 answer
120 views

How can I create a EmailMessage Record in an EmailService?

I've created an EmailService which I need to use to grab from the body the Record ID, create an EmailMessage record an relate it to the object. Everything works fine, using some debug logs I've ...
Fernando Arévalo's user avatar
0 votes
0 answers
62 views

Reply, Reply All button on Email Message throwing error to community users

We have a community setup for our customers from where they create cases, and on the case detail page, we have a related list for emails. In the related list, when users navigate to the email message ...
Nature Lovers's user avatar
0 votes
0 answers
72 views

Remove or Update 'Reply' button in Email Message Page layout

When I click on 'Reply' button in Email Message record, it opens /_ui/core/email/author/EmailAuthor page. Here, I want to populate cc field. I am able to do that in a custom button by sending the ...
sf developer's user avatar
0 votes
1 answer
48 views

Trying to find the governor limit that would apply to my particular flow

I have a app installed in an org that lets the company send bulk emails via Sendgrid API (not via Salesforce). The leads and contacts get an EmailMessage record added, whith the relatedTo.Id being a ...
user1702965's user avatar
0 votes
1 answer
51 views

How to update first response date field(custom object) on case object

Hi am new to salesforce and I have a task I have to capture the first email date sent from case - meaning the date from chatter feed and populate it to a field. Should I use a flow or trigger for this ...
Impana 's user avatar
0 votes
0 answers
141 views

How to Query the EmailMessage Origin Routing Address of a Case from Email-to-Case

We need to know which email routing address the case (created from Email-to-Case) was created. Here's a sample scenario that we have: Currently, we have 2 mailboxes forwarding to Salesforce. (Let's ...
user3185455's user avatar
0 votes
1 answer
85 views

How can I get the delivery details of a email sended by /interaction/v1/events

I'm using the request below to send emails using a journey builder/templates, etc: url = 'https://exacttargetapis.rest.marketingcloudapis.com/interaction/v1/events' headers = { 'Content-Type': '...
Alex Soto's user avatar
0 votes
0 answers
24 views

When an email message is Opened the system does not seem to recognize that it has been updated for Flow [duplicate]

I have created a flow on the EmailMessage Object that is supposed to run anytime an email message record is created or updated if it is related to a specific Customer Object record. On the related ...
Ahowell's user avatar
  • 15
3 votes
0 answers
74 views

Mismatched LInkedEntityId on ContentDocumentLinks

I'm trying to link attachment files to Salesforce EmailMessages. Steps so far: Upload attachment file by posting to /services/data/v58.0/sobjects/ContentVersion. Query ContentVersion table to get ...
Alex's user avatar
  • 31
0 votes
1 answer
56 views

When inserting a EmailMessage manually, the Activities Timeline shows "Upcoming & Overdue" but one that is autogenerated by SFDC is bucketed via month

Perhaps it isn't possible, but I find it strange that autogenerated EmailMessage records are bucketed into the correct month, but manually inserted EmailMessage records show up as "Upcoming & ...
rmarq423's user avatar
  • 967
0 votes
0 answers
160 views

Difference between Task of subtype 'Email' and EmailMessage

How can the difference between the following queries be explained: the output from the object Task where TaskSubtype = 'Email' the output from the object EmailMessage I've noticed that 1 > 2.
Michieldo's user avatar
0 votes
1 answer
236 views

EmailMessage in python successful but no email is actually sent

I am sending an email in a case using emailMessage in python. I can see it updated in the case but the email isnt actually sent. I have hardcoded the FromAddress and ToAddress. My request is as ...
user2249295's user avatar
0 votes
0 answers
39 views

Not able to get Task record during an EmailMessage deletion trigger

During an EmailMessage related to a Lead deletion, I need to be able to get the associated Lead on the Task (ActivityId field on EmailMessage object) and add it to the correct list. In the following ...
ThisIsAlex93's user avatar
0 votes
1 answer
326 views

Add New Task Button On Email Message record

I need to add new task button on Email Message Record. but after I put the New Task on the page layout it still not appear. what I already done is: Put Standard New Task button in Email Message ...
naticap's user avatar
  • 121
0 votes
0 answers
203 views

Getting error 'Invalid type: EmailMessage'

I have create one class which implements Messaging.InboundEmailHandler. It was working fine until now, but now I am getting Invalid type: EmailMessage while editing the class. And, when testing the ...
Ruturaj Chothe's user avatar
0 votes
0 answers
92 views

EmailMessage Trigger causes missing EmailStatus records

An apparent problem we have found using an Apex Trigger on the standard 'EmailMessage' object is as follows: The trigger handles the 'after insert' event and when an email is sent (e.g. from an Apex ...
John Lewis's user avatar
1 vote
0 answers
109 views

EmailMessageRelation with missing RelationObjectType and RelationId fields

I'm trying to get author ID of an EmailMessage written by an agent in a Case. As far as I understand it should be available in the linked EmailMessageRelation with RelationType = 'FromAddress'. ...
Vladimir Kuriatkov's user avatar
1 vote
0 answers
564 views

"Related To" field on Email Message object not showing in report

I'm creating a report on the Email Message object. I have selected the fields I want displayed on the report, but the "Related To" field is not available to be selected. I do not see the &...
Kimberly Orisaremi's user avatar
2 votes
1 answer
486 views

EmailMessage created via API not showing up in Contact's activity timeline

We're seeing an issue with email messages (created via the API) not showing up on a contact's activity timeline if the contact is the sender, but does show up if the contact is the recipient. Below ...
Scott Hill's user avatar
0 votes
1 answer
382 views

send email even with addError (platform event)

I need help to understanding why I can't send email even using platform event (publish immediately). The business logic is to prevent duplicated lead basead on a field, show an error message in the UI ...
M.ho's user avatar
  • 5
0 votes
1 answer
208 views

Clone Created Date of Email Message with Apex

I'm trying to clone a row of an EmailMessage object to store the Created Date field with its original value. I am using the clone() Apex method https://developer.salesforce.com/docs/atlas.en-us....
Jota's user avatar
  • 25
1 vote
0 answers
193 views

an email can't have more than 1 sender on EmailMessageRelation object

I am trying to import EmailMessage from one org to another. I am following instructions on this page here https://help.salesforce.com/s/articleView?id=000380515&type=1 I am on step C1 and where I ...
Hulk Buster's user avatar
1 vote
0 answers
286 views

Prevent sending duplicate email message in Case using Email related list

Is there a way to prevent the Users from sending a duplicate email from Case Email related list? I already checked a Salesforce article regarding this. I want to make the Send button to be disabled ...
jayem's user avatar
  • 11
0 votes
2 answers
59 views

Is there a way to make this apex more performant?

I have a class I am working on that will export a CSV that includes "Case Number", and "Last Outbound Customer Activity Date". There is some logic included in my Apex that ...
guffelman's user avatar
1 vote
0 answers
456 views

Filling custom fields when sending emails

Although custom fields can be added to the standard EmailMessage object, there does not seem to be any way to populate these fields when sending an Email using the Messaging.SingleEmailMessage class. ...
John Lewis's user avatar
1 vote
1 answer
1k views

Sent emails not visible under Task object in salesforce Lightning

I created a flow which triggers when a task is closed and sents an email through email action. The flow is working and email is received in mail box but I cannot find the sent emails in salesforce ...
Salesforce User's user avatar
-1 votes
2 answers
529 views

Email-to-case vs OWA

I've recently added new email addresses to email-to-case. These email addresses are now available to all the people in the org as 'from' addresses when they send an email to the customer. I tried to ...
user15905594's user avatar
0 votes
1 answer
308 views

Getting a component error in Lightning when a user edits Case on detail page

A user is getting this error every time they try to make an edit on their detail page on a case record: [LWC component's @wire target property or method threw an error during value provisioning. ...
UserGuestNYG90's user avatar
0 votes
0 answers
2k views

Record trigger flow not working for case and email message object

I have working to convert the workflows into flow for the below scenario with Case and email message objects. But its does not triggering properly and am not get the result. Am not sure where the ...
ajmal khan's user avatar
0 votes
0 answers
3k views

Record triggered flow not working for email message and case object to update the owner ID

I have working to convert the workflow into flow for the below scenario. But Am not sure, Why its not triggering, where I done the mistakes and why its hanging to trigger the flow. Please see the ...
ajmal khan's user avatar
0 votes
1 answer
3k views

How to update the fields in Case object once sent the email from email message

I have working to convert the workflow into flow. But am stuck with connecting the parent and child objects which was email and case on while creating the flow. Am not aware how to connect these two ...
ajmal khan's user avatar
0 votes
1 answer
217 views

At exactly what point of execution are merge fields in EmailMessage resolved?

I want to create a custom logic that will copy the value of EmailMessage.Subject after the merge fields used in it get resolved. I tried to do it on the after insert trigger on EmailMessage object. ...
Rechu's user avatar
  • 452
0 votes
1 answer
538 views

Not able to create an EMAIL MESSAGE using SSJS in Marketing cloud?

I am trying to find a way to create an email with a click from the browser using Javascript client side & server side ( AJAX ), but now having issues with SSJS, I tried to retrieve the id of the ...
TaouBen's user avatar
  • 154
0 votes
0 answers
187 views

how can i choose one email from all email Map list?

I'm just starting with salesforce and need some help. I need to get one related email from Map email list. I manage to get all emails with this query, but don't know how to get one I needed. Any help ...
Karol's user avatar
  • 3
0 votes
1 answer
198 views

How to solve : FATAL_ERROR System.FinalException: Cannot modify a collection while it is being iterated

My Goal is to remove certain email address from To when user click on Reply All Map<Id, EmailConfiguration__c> mapEconf = C3S_EM_EmailConfiguration.getAllEmailConfigsByIds(); List&...
user avatar
0 votes
1 answer
2k views

EmailMessage Bounce Reason. How to find it from the email, not associated to a Contact/Lead/Person Account?

On a Contact/Lead/Person Account object there is an "EmailBouncedReason" field along with an "IsEmailBounced" field, which makes it possible to understand a cause and fix it. But ...
Duck The Developer's user avatar
5 votes
3 answers
7k views

Salesforce Storage Issue - Hitting Data Storage Limits with Email Messages

We continue to have our data cap hit for Salesforce data. Prior to spending more on storage, I want to ensure I am doing my due diligence. We just purchased 3 more units of storage last month that ...
Matthew Metros's user avatar
0 votes
1 answer
1k views

When file is uploaded need to send an email with attachment with file format

I have a task that when i upload a file with excel or pdf or any format at that time it have to send an email with attachment with the file type which i upload . Below is my code:- trigger ...
Mahesh 's user avatar
0 votes
1 answer
864 views

Case.SourceID does not exist? Determining if EmailMessage record created the case

In one org, I have used Case.SourceID (queried SELECT Parent.SourceId FROM EmailMessage), which would tell me the ID of the EmailMessage that was the original case origin email. In another org, the ...
number41's user avatar
  • 958
1 vote
3 answers
18k views

Get record type developer name in Flow instead of RecordTypeID

I am creating a flow on EmailMessage object. I want to retrieve the record type name in the flow instead of RecordTypeID. Is there any way to get the name instead of ID?
Sameer Ali's user avatar
0 votes
1 answer
1k views

salesforce Dataloader : field 'Description' can not be filtered in a query call

I am using dataloader to look for and extract certain emails(tasks) that must have the word "igloo" in them, I tried to do 'description' contains "igloo" and got an error saying ...
happyLion's user avatar
1 vote
0 answers
198 views

Winter 21 release ''Disabled Ref ID and New Threading Behavior for Email-To-Case" [closed]

When I enabled this critical update on my sandbox, I am facing some issues even though I have disabled it. The issues are as follows: 1.The auto-response email is missing under the case feed. 2....
Naveen Mosuru's user avatar
1 vote
1 answer
4k views

EmailMessage not showing on lead's Activity Timeline

I am trying to log an email message on a lead/contact. The EmailMessage is getting logged correctly but it's not showing on the Activity Timeline for the lead/contact. EmailMessage m = new ...
Mossi's user avatar
  • 3,966
0 votes
1 answer
1k views

How to associate EmailMessage with Lead record using apex?

I am creating a new EmailMessage record from my apex code and I want that this record should be associated to a Lead record. As per documentation, we can not use RelatedToId RelatedToId : The ...
Sarang's user avatar
  • 2,585
0 votes
1 answer
387 views

Inbound eMail Handler - monitor incoming mails

I add a inbound email handler into my org to add a new record in a custom object (bt). Sometime the mails are not processed and I don't know why. Is there a way to check the incoming mails in ...
peXeq's user avatar
  • 471
0 votes
1 answer
1k views

What types of e-mails are counted against the daily SingleEmailMessage Limit?

I tried googling but couldn’t find a clear answer to what all emails that are sent from Salesforce count against the SingleEmailLimit of 5000 per day. Does workflow rule e-mail alerts count against ...
Nikhil Somvanshi's user avatar