Skip to main content

Questions tagged [emailfileattachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
141 views

Issue with attachments when resending an e-mail (that belongs to a Case) via Apex

I have an Apex batch job that periodically resends mails that belong to Cases. It creates a SingleEmailMessage, copies all relevant fields from the previous, most recently sent, EmailMessage and sends ...
Sander de Jong's user avatar
1 vote
2 answers
192 views

Visualforce PDF sent as EmailAttachment in an Apex Flow Action is corrupted

We have a Screen Flow that basically creates quotes. In that flow, two Apex Actions are called: one that creates a QuoteDocument from a visualforce rendered as pdf: PageReference pdf = Page....
joacoiudica's user avatar
3 votes
0 answers
487 views

Attach files programatically using Global.SendEmail standard_quickAction in LWC

I have an LWC datatable where, upon clicking a button at row level, the default email composer needs to open as it does in SF standard related list. The documentation specifies an example where ...
Gabriel Serrano Salas's user avatar
0 votes
2 answers
400 views

How to send the HTML code in the data extension field as an email attachment?

We are querying data from the Contact object from Sales Cloud to Marketing Cloud and sending email templates along with dynamic attachments to contact emails. Here we are sending the PDF URL stored in ...
Sfdcprgmr's user avatar
  • 437
-1 votes
1 answer
627 views

How can I send an email with a salesforce report attached?

I'm try to scheduler email send with a repor attached, but when i received the email, appear the next error in the file: I'm use the nex Apex code: global class Exporter implements System.Schedulable ...
Michelle Soto's user avatar
0 votes
0 answers
34 views

Deployed Spider on Heroku: Where are the downloaded files saved at?

I am new to web-scraping and deployment of spiders. Basically, I am in the midst of creating a spider to scrape some items and download Excel files from a website I want to schedule the spider on ...
123456's user avatar
  • 101
0 votes
0 answers
44 views

ContentDocuments under Email only visible if there's an Attachment?

I have an EmailHandler that creates a ContentDocument for every BinaryAttachment/TextAttachment. What I need, is these files to be visible under the Email in de Case Feed. This works, but not ...
Jaap Scheper'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
1 vote
1 answer
3k views

Read a csv file that is stored in Attachment Object

I have an excel/csv as an attachment related to an EmailMessage. I want to read the csv, process the data and create certain records(of custom object) based on that data. I want to understand how I ...
Awais Ahamed's user avatar
0 votes
1 answer
639 views

E-Mail with csv attachment processed in Salesforce [closed]

It is possible to send an email with an attachment to salesforce and that this attachment will be processed there? The attachment contain multiple columns and rows for update or create records.
peXeq's user avatar
  • 471
2 votes
1 answer
576 views

how to get correct FileExtension for word document from ContentVersion received in mail attachment for pdf its correct but for its not .docx for word

Hi I am getting wrong extension or type for word document from ContentVersion in mail attachment for pdf its coming correct but for its not .docx for word I debug its coming WORD_X which is wrong and ...
priya dhawan's user avatar
1 vote
1 answer
319 views

Attachments and Cc details sent to "reply to" email id not showing up

When the email recipient replies to the "reply-to" email address (configured in RMM) by adding an attachment and also adds Cc email id while replying, the attachments and Cc details are not ...
Rohan Kulkarni's user avatar
1 vote
1 answer
2k views

What data type can be used to support file uploads in Salesforce?

I have a custom object and I want to add a new field to support file attachments. For example, while creating new record, I want the user/admin to have an option to attach files to that record during ...
Sameer Ali's user avatar
0 votes
0 answers
699 views

EmailMessage failing to insert occasionally

I have written some apex code to create a case when an email is sent to the support email. It's working great but sometimes when a customer sends an email with attachments the attachments get inserted ...
Laura Bejjani's user avatar
0 votes
0 answers
203 views

How to increase Salesforce file download speed for users in China

We are using Email to Case and have a lot of emails with attachments captured in the system. Customers use email from Salesforce with Attachments/Files to negotiate contracts and exchange invoice / ...
sfbuff's user avatar
  • 21
2 votes
0 answers
123 views

Sending a File by email in Classic creates an attachment: how to prevent this?

Salesforce is gently pushing us to use Files and not Attachments. However, in Classic I seem unable to prevent the creation of new Attachments. In Setup, there is the option "Files uploaded to ...
Sander de Jong's user avatar
0 votes
1 answer
281 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 ...
MetadataLater's user avatar
0 votes
1 answer
910 views

Blank PDF attachment when try from site

I have a site, when a guest user insert some data into a inputText it triggers a record creation (HojaEntrega__c object and child records from HojaEntregaItem__c object), then an attachment creation ...
Chandlerbeen's user avatar
0 votes
1 answer
1k views

Prevent file from being duplicated as email attachment - Apex

I've button when i click on it it generates new file , i want to attach that file to email The problem i'm facing is that i found duplicate attachments when i click on button twice , 3 attached file ...
user avatar
0 votes
1 answer
58 views

Send email with attachment on field update

I have created a button to update a checkbox field. <apex:page standardController="McLabs2__Invoice__c" recordSetVar="Invoices"> <apex:form > <apex:pageBlock > &...
Ashwini Sukumaran's user avatar
2 votes
1 answer
2k views

Load data from incoming email CSV attachment

I would like Salesforce to create some records for me based on data that is incoming in an email's CSV file attachment. I've investigated the Email Services functionality, and set up an address, ...
Laureant's user avatar
  • 239
-2 votes
1 answer
85 views

I am not able to scheduling the below code

When I am trying to schedule this below code: global class exportReport3 implements System.Schedulable { global void execute(SchedulableContext sc) { ApexPages.PageReference report = new ...
HSR's user avatar
  • 11
1 vote
1 answer
4k views

Attach a file in email from Content builder

Is there anyway that I can attach af file from Content builder in Salesforce marketing cloud? I want the file to be added to the email like it would do, if you dragged a file into outlook or any ...
Martin Ho's user avatar
  • 107
0 votes
0 answers
1k views

How to attach a dynamic file in a email template?

I'm trying to attach a file to an email templates. This email template will be used in a workflow, so what I need is to send it everytime a condition is met in a opportunity. The file I need to ...
jorgechamorro's user avatar
2 votes
1 answer
791 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 ...
downtoplanet's user avatar
0 votes
1 answer
642 views

DocumentAttachmentMap Query for Attached File

I can attach a file to a Lightning emailTemplate using one of the emailTemplate editors in Salesforce but I have not been able to find the attachment record that makes this relationship possible. If,...
Cleverlemming's user avatar
0 votes
2 answers
391 views

Trying to send attachment in Notes and attachments section via email alert

I have setup a task custom object. When the user changes the status of task from pending to completed, an email alert needs to be sent to the person with the attachment that is available in the 'notes ...
Student's user avatar
  • 565
0 votes
1 answer
2k views

How to create interpersonal documents (PDF Files) and how to attach them into email using a SFTP server?

In Marketing Cloud : I would like to create interpersonal documents (customer contract in PDF) and attach them into email in automation, (in the same time that I send my email scheduled in journey ...
Pauline's user avatar
  • 13
2 votes
1 answer
1k views

I'm trying to add a link (to a webinar) in a Calendar invite attached to an email

Starting with Doug Ayers' Visualforce solution (thank you, Doug!) (https://douglascayers.com/2015/01/09/salesforce-send-calendar-invites-in-visualforce-email-templates/), I create the invite as a ...
Duncan Stewart's user avatar
7 votes
4 answers
4k views

Why SingleEmailMessage.setFileAttachments() does not create visible attachments in the Activity Tab in Lightning Experience

I'm sending emails like this: Messaging.SingleEmailMessage m = new Messaging.SingleEmailMessage(); m.setToAddresses( new String[]{'[email protected]'} ); m.setSubject( 'test' ); m.setHtmlBody( ...
Uwe Heim's user avatar
  • 28.4k
1 vote
1 answer
857 views

How to read Body of Email

I have emails attached in notes and attachments object. When i try to read the body of Email i get Blob values suggest me ways to convert the blob into text.
Ajay's user avatar
  • 11
0 votes
2 answers
3k views

Create a Salesforce file from an email attachment

I am using the custom email service to receive an email with an attachment. I can create a custom object record and associate the email attachments with it. Since the direction is to move away from ...
Michele Kleinhomer's user avatar
0 votes
1 answer
3k views

How to attach a file to an email within a workflow

I've customized fields in an opportunity. Within a workflow when an opportunity reaches 100% I send automatically an email using the custom fields. I need to attach automatically a file (or several) ...
Didier's user avatar
  • 1
0 votes
1 answer
399 views

How to copy attachments sent with an email from child case to master case

I am developing a functionality where I need to copy emails(emails+attachments) from a child case to parent case on merging. Right now what ever I have developed I achieved copying emails from child ...
Harjeet Singh's user avatar
0 votes
1 answer
2k views

Can an Apex Email Handler parse an attached Excel file?

I would like to set up an email handler class to receive emails from a supplier with attached files in Excel format. We already have similar functionality that handles CSV attachments from another ...
Brian Oconnell's user avatar
1 vote
1 answer
70 views

Linking attachments to Lead sent through Installed Package: LeadFromEmail

I'm a total newbie to Apex and would really appreciate some help. I am using the Installed Package: LeadFromEmail In the settings I have enabled attachments to be processed, however attachments are ...
David Cornford's user avatar
0 votes
2 answers
2k views

Exception: No body supplied for the file attachment.: [fileAttachments] [duplicate]

I have an Apex class that contains @future annotation method to send email. A Visualforce page is rendered as pdf and is sent as an email. I'm getting an exception in test class- System....
SFDC Developer's user avatar
0 votes
1 answer
999 views

Issue with EmailFileAttachment class

I'm building a test class for a controller that consists of a method for sending email. I need to provide test data for that email method. The test code is- List<String> listEmail = new ...
SFDC Developer's user avatar
-2 votes
1 answer
1k views

Initial expression is of incorrect type, expected: Messaging.EmailFileAttachment but was: Attachment

The below code gave me this error: Initial expression is of incorrect type, expected: Messaging.EmailFileAttachment but was: Attachment Specific error line: eMessage.setFileAttachments(new ...
Mark Robert's user avatar
1 vote
0 answers
107 views

Add existing attachment in visualforce Email template via workflow

I have a scenario that when billing is generated in system. Invoice should be send through mail to Person Account Email. I am doing this via workflow. In workflow I have a VF email template which ...
Harvey's user avatar
  • 11
0 votes
1 answer
788 views

Email with static resource image from asyncrhony mode

I have process that update checkbox field in object. When this happen it invoke workflow that send email with attachment, and inside the attachment images from static resources. The process which ...
Liron C's user avatar
  • 1,788
1 vote
1 answer
2k views

Warning when opening Apex generated Excel .xls?

I am trying to send an E-Mail with an Excel Attachment. Everything works, except I am getting a warning when I am trying to open the send attachment: The file format and extension of 'ExcelfileSC....
Frederik Witte's user avatar