Questions tagged [emailmessage]

Represents an email in Salesforce.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

CaseFeed EmailMessageEvent --> what is the email body?

Using the restapi, how can I get the email body of a casefeed emailmessageevent ?
0
votes
1answer
13 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 ...
0
votes
0answers
16 views

Reply, Reply All & Forward Quick Action

is it possible to use Reply, Reply All & Forward (this Quick Actions are on "EmailMessages") - Quick Actions on a custom Lightning Web Component? For example it is possible to use the ...
0
votes
1answer
25 views

EmailMessage Data Storage Isuue in Production

Currently we are facing storage issue in the production org. EmailMessage has consumed most of the data storage there. As of now we don't want to store the old data to another storage as client need ...
0
votes
0answers
23 views

Render text to Text Body field of Email Message Object Through Process Builder

I am trying to insert an email message from process builder and want to access an email template while doing the DML to populate the text body field. It seems like, email template id is accessible ...
0
votes
0answers
14 views

Can historical EmailMessageRelation records be migrated? (CreatedDate is not writeable even with relevant permissions)

I am unclear how one can migrate EmailMessageRelation records because the 'CreatedDate' field is not writeable even with the relevant permissions ('Edit access on Read Only fields' and 'System Audit ...
0
votes
0answers
67 views

EmailMessage object access in Case Trigger after insert

Of course people will suggest to use EmailMessage trigger but if I update case from there then the problem is in case auto response rule as our requirement is mainly to fire the autoreply after the ...
0
votes
1answer
26 views

Query Case Record Type Name for the Parent Case of an Email Message in SF

I want to query the Case Record Type Name for the Parent Case of an Email Message. I am trying with the below query but it is not returning me the name :- select id,subject,parentid,parent....
0
votes
1answer
37 views

After Insert Trigger on Email Message to Update a field on Case [duplicate]

I have one custom checkbox field on Case named Check__c and I want it to be checked if the From Address of the incoming email message linked to that case is equal to the Case Owner's email. there is ...
0
votes
0answers
32 views

Possibility to track INCOMING emails in Salesforce using Email Service

I am using Email To Salesforce in order to handle incoming emails. Is it possible somehow to track if an INCOMING email to Salesforce has been opened/read? No email client integration is currently ...
3
votes
1answer
63 views

Impossible to test Task created from Messaging.sendEmail?

I have added some fields for Compliance to EmailMessage and Campaign objects. When a list email is sent, a batch job finds the tasks and copies those fields from the campaign related to the list email....
0
votes
0answers
86 views

Set EmailMessage Visibility

I have two users who share the same profile and have access to Cases. When one user sends an Email to the Case's Contact from the "Activity Composer" an EmailMessage appears in the Email ...
0
votes
0answers
12 views

How to show an Email Alert email appear in the Activity section?

I want my Email Alert email to show up in the Activity section of the record. I think I am going to do this by creating a new EmailMessage record. Will this new EmailMessage record also initiate ...
0
votes
0answers
25 views

Email Service is throwing System.NullPointerException error

Salesforce is throwing exception on 1st line of code Script-thrown exception System.NullPointerException error. Though first line just instantiating the class. Is anyone face similar issue? It is ...
0
votes
1answer
129 views

Receiving ILLEGAL_OPERATION error on EmailMessage Update from ContentDocumentLink trigger

I've been trying to make a fix for a known error when logging emails from the Outlook integration where embedded images display as broken links in the feed. My solution for this would be a trigger ...
0
votes
1answer
111 views

EmailMessage HasAttachment and Files

Is there a way to create an EmailMessage record with an associated File/ContentVersion AND set HasAttachment when created via Apex? Same example code in this question, however the only answer there is ...
0
votes
0answers
59 views

How to change the From the emailmessage before sending the email via apex?

When I change the ValidatedFromAddress in the before the emailmessage trigger it goes back to the user's email. The email received comes from the user and not from the changed email. Can you tell me ...
0
votes
1answer
27 views

Can't get attachment data from outbound email via Apex

Has anybody got experience or ideas how I can resolve the following issue please? We're trying to query attachments sent via outbound email from the email related list on case, so that we can copy the ...
0
votes
1answer
111 views

How get Lead Id in apex trigger

When sending an email from the lead screen. Is it possible to get the lead id in the before of the EmailMessage trigger?
0
votes
0answers
76 views

Object Permissions on EmailMessage Object

No object level permissions appear to exist for the EmailMessage object is this true?
0
votes
0answers
38 views

Reply function for inbound email message

I have set up an Email Service email which creates an email message once an inbound email is received. The email message will be related to a Person Account that matches the 'From Address' on the ...
0
votes
0answers
23 views

CCAddress of EMAILMESSAGE Object not getting updated from parent field

I have written a beforeinsert trigger on EmailMessageObject and trying to update CCAddress of the EMAIlMessage object from a field of case(parent here). public void beforeInsert(List<SObject> ...
0
votes
0answers
40 views

Email-to-Case : How to tell if a case is created as a result of a new incoming Email OR as a reply to an existing case

I set up email to case for my organization, i have a requirement to send back an automated no-reply email to any incoming email that is not a reply to an existing one. Example: The sales rep sends ...
0
votes
0answers
61 views

Marketing cloud custom font usage

Hi have the font file with otf extension. Can any one give me a clear steps to upload in marketing cloud and use this in email templates.
0
votes
1answer
29 views

How to reference RecordTypeId via RelatedToId for EmailMessage

can anyone please shed some light on how to reference the RecordTypeId of the record related to an EmailMessage via the RelatedToId field? I would like to update the IsExternallyVisible field based ...
2
votes
1answer
215 views

EmailMessage Storage Issue [closed]

Currently we are facing storage issue in org production. It is reached to 90%. Most of the storage is consumed by emailmessage. We looking different solutions. We are planning to extract the ...
0
votes
2answers
29 views

Can two email messages be inserted at the same time with email to case?

I am setting up a trigger for when email messages are after inserted and we use email-to-case. Is there any way that the email-to-case inbound or normal sf outbound message system could result in two ...
0
votes
0answers
55 views

Issue Simulating Outlook Lightning Sync Email Messages

I'm trying to trigger some automation do some updates to Leads/Contacts when EmailMessages are logged in certain situations. I tried accessing the toIds array in a trigger on EmailMessages, but that ...
1
vote
0answers
233 views

An email can't have more than 1 sender error

I have an email service. When sending an email to the email address that SF provided : sffdc@skuh7gi7z4fo72pt6h2o.1l-8dix.....apex.sandbox.salesforce.com I need to check the "from address" and ...
2
votes
0answers
26 views

Email Message sent out even when Approval Request fails

We have an Approval Process (AP) and a Process Builder (PB) on Email Message object. We also have a PB on Case object. The logic is following: A user creates an Email Message on a Case record and ...
1
vote
0answers
630 views

Email Message record creation through process builder

I want to create an email message record after sending an email template. Is there any way to create email message record through process builder or workflow after sending an email alert. So that we ...
0
votes
0answers
101 views

Send Email (Emailmessage) to update Lead custom field

The  lead object  has a field "Interaction count" . It is a number field. I am using this field for  an active process builder  which is working  on the below criteria: If any Task is created , It ...
1
vote
0answers
219 views

Make Lightning buttons Reply/Reply All/Forward visible for everyone

As per documentation Reply/Reply All/Forward buttons on EmailMessage are visible only for users who are mentioned in To/CC/BCC. In our case we need whole support department to be able to reply any ...
2
votes
0answers
103 views

How to make Reply, Reply All, Forward options available

I have created a new email service which populates a Lead__c field on the emailMessage object. Then i am displaying the emailMessages in a related list component. However, even though im getting the ...
1
vote
1answer
69 views

Lightning component Service Console, get and edit content of Quick Action Email Message

im trying to develop one Lightning Component for Service Console who is in charge of GET\EDIT entire\parts of Email in Case Management Quick Actions (screenshot) when the user click on the button of ...
1
vote
1answer
44 views

Tie Email Responses back to Lead Object

I am attempting to allow users from my company's sales department to email potential customers from a lead in service cloud, then if the customer replies to their email i need to display the email ...
2
votes
1answer
295 views

RelatedToId field on EmailMessage Not Writeable

I am getting this response 'Field is not writeable: EmailMessage.RelatedToId' Email trigger helper method is the following: public static void parseEmailSubjectForLeadRelation(List<EmailMessage&...
0
votes
0answers
57 views

Parse Outgoing Emails (through Salesforce email composer) to change body's font style and embed a Signature

I would like to know if accessing outgoing emails before they go out of the system is possible. We want to get rid of default Salesforce signature and embed one of our own in all the outgoing emails. ...
1
vote
0answers
165 views

How to add cc & bcc in Messaging.SingleEmailMessage Email and simultaneously avoid single Email limit being hit

My requirement is to send single email with To/Cc/Bcc added. All the email Ids belong to internal users. Initially, when I was passing the User.Id to these methods, I was hitting the Single Email ...
2
votes
1answer
101 views

SLEEPY Error on Encryption?

We are in the process of encrypting fields in Production to accomodate PII regulations. This is going well for most fields, but today we encountered an issue with the EmailMessage object. In multiple ...
0
votes
1answer
47 views

Too many Email Invocations: 11 with List<Messaging.SingleEmailMessage>

I have a Schedulable class that I execute every day. I get some accounts that accomplish some conditions and then I create a email for everyone of this records into a List, but I'm getting this error. ...
1
vote
1answer
106 views

Case Status Changing from Email Message Workflow not working

I've tried creating a simple workflow to change the case status from "Resolved" to "Reopened" when a customer replied to the case. I've found a few guides online to do this but for some reason it ...
0
votes
0answers
29 views

Using MassEmailMessage is not saving EmailMessage records

I'm a developer, and I just did some work using MassEmailMessage on Case records (with the related Contact being the recipient). During testing I noticed that it's not saving any sort of EmailMessage ...
0
votes
1answer
313 views

Email retention and Archiving timelines

Is there any limit/retention Period for storage of EmailMessage records by Salesforce or Archiving Criteria after which it will not be available and how to access Archived records. Regards, Prabhat ...
2
votes
1answer
247 views

How can I write a test that involves accessing the EmailMessage.ActivityId field?

I have some code that involves the following SOQL query: EmailMessage emailMessage = [SELECT Id FROM EmailMessage WHERE ActivityId =: task.Id]; In order to write a test for this code, the test setup ...
3
votes
0answers
223 views

ParentId on EmailMessage is not writable?

We have a business scenario where an incoming EmailMessage sent to a closed Case, should be automatically reparented to another case that's Opened. The logic would achieve this by modifying the ...
0
votes
1answer
150 views

Unable to Query IsPrivateDraft in EmailMessage through data loader or REST API

We are trying to get the data from EmailMessage and looking to have the fields IsPrivateDraft, LastOpenedDate, FirstOPenedDate; and while we can query these through developer console we are unable to ...
2
votes
1answer
121 views

Prevent attachment of Certain type while sending email

I have been trying to prevent an attachment of type pdf while sending emails within Cases. I create an email, attach a pdf document. The process builder fires on Email creation which in turn calls a ...
2
votes
1answer
355 views

Trigger on EmailMessage to capture when an email is opened

Is there a way to capture the opening of an email sent as an activty of the opportunity object for example? I wrote a trigger on EmailMessagge (after update) but is not invoked.
2
votes
1answer
126 views

EmailMessage.RelatedToId not valid for Lead in Process Builder

My process runs 3 minutes after lead creation. It sends an email to the lead and logs the message in Email Message. Here's the error... Error Occurred: This error occurred when the flow tried to ...