Skip to main content

Questions tagged [attachment]

A standard Salesforce object representing file attachments related to another standard or custom object.

Filter by
Sorted by
Tagged with
1 vote
1 answer
158 views

What is the difference between Blob.valueOf and EncodeUtil.base64Decode?

I've a scenario where i'm saving the file as content version is attching to a record when i use blob.valueOf() it's failing and when i use EncodingUtil.base64Decode() the method is creating record . I ...
mine_username's user avatar
0 votes
0 answers
20 views

Show Campaign Files on Lead/Contact

My Sales Development team would like to see what content a potential customer saw. So Marketo is syncing campaign information, adds a lead to a campaign, and attaches some files to the campaign. Is ...
denvergreene's user avatar
  • 1,198
-1 votes
1 answer
25 views

Add attachment to email template

Is there a way to add a pdf attachment to a classic email template without using visualforce coding? Thanks
Amal Dev's user avatar
0 votes
0 answers
12 views

While bulk uploading .snote file extensions the preview option is not coming in salesforce....need a workaround for the same [duplicate]

While manually uploading a .snote file in salesforce file the preview functionality works but the same preview option is not working when bulk upload is done for multiple .snote files.
user2828669's user avatar
0 votes
0 answers
34 views

EMAIL IS NOT GOING IF ATTACHING 500KB or Above

I am trying to upload file of size between 1MB and 2MB using LWC component and after upload saving the same file as an attachment and sending it in an single email as an attachment. I am able to ...
Learner's user avatar
  • 21
0 votes
0 answers
24 views

How to download attachment of type image in bulk

I have an Object of Case, where we will have related object named Defect_Rectification_Item__c. Inside this defect object, we will have attachment of type image. How can I download all the image in ...
Salman's user avatar
  • 1
0 votes
0 answers
31 views

Is it possible to trigger "Email Quote" QuickAction from Aura Component?

I've got an Aura Component modal launched from Opportunity which reviews and creates a Quote, redirects the user on the new quote page, and create a PDF (apex call). What I want to do is to open an ...
Yan Imensar's user avatar
1 vote
1 answer
76 views

Error during saving FeedItem with type ContentPost using API above 35

I am trying to save FeedItem with attachments. In that case I set type of FeedItem to ContentPost. During saving FeedItem I am getting 2 errors of FIELD_INTEGRITY_EXCEPTION type: ContentFileName is a ...
Mateusz Hernik's user avatar
1 vote
1 answer
73 views

How can I store a large file in Attachments?

Our team has built a caching system for lengthy data analyses that we're already using for two types of analyses. I'm working on a third type where the file size of the analysis (zipped) is over 100 ...
Chuck's user avatar
  • 977
0 votes
1 answer
151 views

What is the efficient way to programmatically fetch binary blob data for automation?

Bulk API 2.0 which is the most efficient way to fetch data in range between 2000 and 15000000, doesn't support binary (blob) data in ContentVersion VersionData and it also doesn't support Attachment ...
Patlatus's user avatar
  • 17.2k
0 votes
0 answers
38 views

Bulk API 2.0 and Attachments Upload [duplicate]

Does Bulk API 2.0 support Attachment upload related to Account (for example)? I checked the documentation and it shows Binary attachment upload using Bulk API and not V2.0. Reference link - https://...
SEuser's user avatar
  • 1,847
-1 votes
1 answer
95 views

How to make an attached document to record visible only for the owner

How to make an attached document to record visible only for the owner of record (custom object) and not visible for other users (for wish record is visible)?
Pedro Van's user avatar
0 votes
1 answer
103 views

Attachment sent incorrectly

I set up sending an attachment in my email using an amp script. %%[ var @customerKey, @fileAlias set @fileName = "https://drive.google.com/file/d/1234567890/view?usp=sharing" set @fileAlias ...
Slavik's user avatar
  • 25
0 votes
0 answers
250 views

Getting Error 'An internal server error has occurred' while passing invoice template html data from LWC to Visualforce Page to render as PDF

Html Code : <div class="invoice_container" style="width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; color: #333; background-...
Pratik Bokade's user avatar
-1 votes
1 answer
311 views

I am downloading the attachments via REST API in postman. I am getting response as below but I would like know which format it is?

We are providing service to a external system, they need to convert the response to a .xlsx file. They are asking about the format.can any one help me in this?[
KCompany's user avatar
0 votes
2 answers
425 views

How to get attachments and inline attachments for CaseComment via Rest API?

I have a Salesforce instance using the old CaseComments instead of a Chatter feed. How do I get attachments and inline attachments to a CaseComment via Rest API? I can get the CaseComments to a Case ...
Erik's user avatar
  • 1
1 vote
0 answers
428 views

Attachments sent from Apex are not stored in the EmailMessage record or the parent Case record

I'm using `<lightning-file-upload label="Attach files" name="fileUploader" accept={acceptedFormats} ...
User2529's user avatar
  • 703
2 votes
1 answer
689 views

Uploading files with chatter REST API

I'm building a headless solution on top of Salesforce and using Community Users to log in. I want those users to be able to upload files to a case. In experience builder it is calling this endpoint to ...
Peter van den Broek's user avatar
-1 votes
1 answer
235 views

How to Update Csv File

So, Basically I am able to insert a csv file in notes & attachment in its parent account but I want to update particular csv file without creating new csv. Can we do it. If yes Please help me ...
Kunal Garg's user avatar
0 votes
1 answer
462 views

Postman API - Attachment is not a supported object

When running this Bulk V2 query in Postman I get the following error. Query: SELECT Id FROM Attachment WHERE ParentId = XXX Error: "errorCode": "INVALIDJOB", "message": &...
Michael SF's user avatar
0 votes
1 answer
32 views

dynamic input value in my vf page is not getting save while I save vf page as an attachment

I have a requirement that I have to create a form where some values will be prepopulated and some values will be filled by user then on clicking on button, page will be rendered as PDF and then attach ...
vidushi agarwal'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
0 votes
1 answer
531 views

How to upload a file against a custom/standard object record?

We have been using Attachment and we have just started to explore Files so bear with me if this question is silly. I am aware that I can upload files using the "Files" tab but I would like ...
daww's user avatar
  • 79
0 votes
1 answer
934 views

I added Notes and Attachments in Related Lists of Opportunity still I am not able to see them in lightning but I can see them in classic?

I added Notes and Attachments in Related Lists of Opportunity from page-layout still I am not able to see them in lightning but I can see them in classic? Why?
Dashrath Singh's user avatar
1 vote
1 answer
370 views

Locate File IDs of contentVersion and attachment objects that contain a specific word within them

The need is to compile a list of fileIDs of 2 types of Salesforce files that contain a specific word within them. Document Files in ContentVersion Email Attachment files in Attachment When using ...
Eashwer B. Iyer's user avatar
0 votes
1 answer
323 views

Attachment content is empty

I have a boomi process which takes the file content and send it to salesforce to create attachment. But attachment is blank. Here is my code: String jsonStr = '...
sThirumagal93's user avatar
0 votes
1 answer
68 views

No Image Attachments Found in site.com error msg

I created a public site with community, however the image (using lightning image slider) from the different tabs aren't showing for public users. My images are in a files folder, I enabled chat for ...
D Blessed's user avatar
-2 votes
1 answer
41 views

Nested query on attachment [closed]

I need to extract id from attachment Parent 'contact' then Contact Parent Id that is account. Need to retrive attachment id , contact id related to that attachment and Account Id related to that ...
MONa's user avatar
  • 1
0 votes
1 answer
294 views

How to transfer file from Salesforce to Marketing Cloud?

Does anyone know how to do that? When in SF creates opportunity with some attached files (PDFs) - need to send an email from Marketing Cloud with some opp info and attached to this email files that ...
Bob Greed's user avatar
0 votes
0 answers
34 views

Can an uploaded File Body/Data be copied to a Document Object?

I am currently using Attachments (not Files) and we move the FeedItem data to our custom Document object. Is there a way to capture the File upload and do the following, that is done with Attachments?...
Tauk's user avatar
  • 1
0 votes
0 answers
221 views

unable to preview Attachments as an image on public site

I have created a visualforce page and hosted it on a public site. I am showing contact and account attachments as images. When I try to preview it using developer console, it is showing the images, ...
Ishaan Jain's user avatar
0 votes
1 answer
732 views

How can I make the upload of a specific attachment mandatory

I have the following situation: In my Salesforce "opportunity" object I need to make mandatory to attach specifics files in order to set the record in a specific stage. Like the following: ...
Rodrigo Moro's user avatar
1 vote
0 answers
312 views

Chatter post with attachment not visible on record page ( Case Object)

On the Case object, when i try to post a message with attachment (with the Chatter feed component), the message doesnt appear but it's visible in the lightning page builder of the record (there are no ...
Dumas Théo's user avatar
0 votes
1 answer
167 views

Visualforce Page - Word Document (.doc/.docx) - open through mobile phone (ios/android)

I have a visualforce page that is renedered in word (.doc). This visualforce is used to represent a contract document. After clicking a custom button, the visualforce page is invoked and then the ...
Giorgos Galaios's user avatar
0 votes
1 answer
2k views

Using the API How can i get "file" attachment. I am able to get "attachment" correctly

I am able to list and download any item that the Type=Attachment with no issue. I can get a list of items where the Type=File. How can I Download the items that are Files? I am using Salesforce ...
bart2puck's user avatar
  • 145
0 votes
1 answer
960 views

Can't update ContentVersion. My code create new file every time

I had such issue. I created method that save attachent to my Opportunity. public PageReference attachInvoicePDF() { /* Get the page definition */ PageReference pdfPage = Page....
Yauheni's user avatar
  • 29
0 votes
0 answers
56 views

InputField can't be used with a commandButton that use rerender

apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute. This is the message I get when I press ...
Alexis's user avatar
  • 129
0 votes
1 answer
244 views

Usage of magic mover app [closed]

Hi all I am using a magic mover app to move files from notes and attachments to files and it works fine. Is there any way if I install this app all the existing records notes and attachments would get ...
user115173's user avatar
0 votes
0 answers
210 views

How can I map the Upload / attachment to a custom field of a custom object in surveys?

I have below requirement. We are not getting upload/Attachment related questions while mirroring the questions to custom object fields. I am creating a survey. I have a survey questions which contains ...
vamsi's user avatar
  • 1
2 votes
2 answers
728 views

Does SOQL query on Attachment Object needs to be done asynchronously?

Problem statement: External system is creating a custom object record and placing an attachment to the same record via composite REST API. After Insert trigger code that runs immediately for further ...
arut's user avatar
  • 5,321
2 votes
1 answer
182 views

Zippex cant create file with Swedish character

I have problem with Zippex encoding. When I create archive with file name 'Check Flät', the name changes to strange symbols. Code that create attachment: Zippex sampleZip = new Zippex(); Blob fileData ...
Anatolii Ivanov's user avatar
1 vote
1 answer
433 views

How is attachment access controlled by record level

By looking at the permission set and profile metadata files, I don't see a place defining the access to contentDocument or ContentVersion so I originally assumed it should be controlled by parent. ...
Lance Shi's user avatar
  • 13k
1 vote
1 answer
427 views

How to edit Field Level Security of Attachment Object (Notes & Attachments)?

is there a way to edit the Field Level Security for the Notes & Attachments object? I've tried from both Lightning and Classic but I can't find the object and a way to edit it...
Teemo_smr's user avatar
  • 142
1 vote
1 answer
2k views

Render VisualForce page report of custom object to PDF and create attachment via page detail button

I have a VisualForce page which shows a report of a custom object MyCustomObject. I have two page detail buttons, one for "Show report" only showing the report rendered as PDF and one "...
HeXor's user avatar
  • 287
0 votes
1 answer
964 views

blob topdf as attachment PDF apex no renders background color

I'm creating an HTML string that I put in a in blob.toPDF to send PDFs as attachments public static Messaging.EmailFileAttachment attachmentBuilder(String fileName, string attachEmailInHTML){ ...
arnaud's user avatar
  • 106
0 votes
0 answers
1k views

Attaching a file to a 'Case' object via REST API

to start with I have defined this class in C# public class ContentVersion { public ContentVersion(string filePath) { Title = Path.GetFileName(filePath); VersionData = File....
Eli Zur's user avatar
-2 votes
1 answer
466 views

"List has no rows for assignment to SObject" [duplicate]

I create headless quick action "Generate and attach pdf". But when i click on my action i have error "List has no rows for assignment to SObject". What is my problem? Error How i ...
Bogdan's user avatar
  • 23
-3 votes
1 answer
83 views

Name pdf from custom field [closed]

i create quick action "generate and attach pdf". I need name pdf from custom field on opportunity object - Invoice_number__c(Auto_number). For example INV-000001.pdf. How i can do this? ...
Bogdan's user avatar
  • 23
1 vote
1 answer
640 views

Syncing Files between orgs (e.g. via Salesforce Connect's Cross-Org Adapter?)

Can anyone suggest a high-level solution for the use case of syncing Files between orgs (one-way is fine)? Preferably something that can be quickly POC'd. For us, Plan A would be to use the ...
Brent Bowers's user avatar
  • 3,144
0 votes
1 answer
418 views

Is it possible to attach a file to an object record IMMEDIATELY AFTER using quick action? How?

I need to attach file to a salesforce object record by quick action. I was able to attach file by quick action using visualforce page + apex, BUT I have to use an intermediary page and a button on it. ...
Pavel Kravets's user avatar

1
2 3 4 5
15