Questions tagged [emailmessage]
Represents an email in Salesforce.
147
questions
0
votes
1
answer
55
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': '...
0
votes
0
answers
23
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 ...
3
votes
0
answers
46
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 ...
0
votes
1
answer
18
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 & ...
0
votes
0
answers
86
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.
0
votes
1
answer
141
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 ...
0
votes
0
answers
25
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 ...
0
votes
1
answer
215
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 ...
0
votes
0
answers
113
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 ...
0
votes
0
answers
78
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 ...
0
votes
0
answers
410
views
Case Auto response email issue with send and email from the Flow
I have Record-triggered Flow, in that I have core Email action with Text Template (Also tried with Email Alert As well).
And I have created a Formula field for Case Thread Id, and added in body and ...
1
vote
0
answers
88
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'. ...
0
votes
0
answers
260
views
setSaveAsActivity false is not creating an EmailMessage record
I have a scenario where I need to hide some email notification (For example only on the custom Case Resolved notification) to the Case feed. I found that the setSaveAsActivity false will not show the ...
1
vote
0
answers
393
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 &...
2
votes
1
answer
330
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 ...
0
votes
1
answer
270
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 ...
0
votes
1
answer
159
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....
1
vote
0
answers
129
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 ...
1
vote
0
answers
185
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 ...
0
votes
2
answers
53
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 ...
1
vote
0
answers
354
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.
...
0
votes
1
answer
757
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 ...
-1
votes
2
answers
322
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 ...
0
votes
1
answer
237
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. ...
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 ...
0
votes
0
answers
2k
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
167
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. ...
0
votes
1
answer
416
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 ...
0
votes
0
answers
164
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 ...
0
votes
1
answer
159
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&...
0
votes
1
answer
1k
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 ...
3
votes
3
answers
6k
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 ...
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 ...
0
votes
1
answer
693
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 ...
1
vote
3
answers
15k
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?
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 ...
1
vote
0
answers
188
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....
1
vote
1
answer
2k
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 ...
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 ...
0
votes
1
answer
332
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 ...
0
votes
1
answer
798
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
1
answer
300
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
0
answers
155
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
1
answer
2k
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
1
answer
881
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
1
answer
337
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 ...
3
votes
1
answer
285
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
0
answers
1k
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
1
answer
2k
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 ...