Questions tagged [attachment]
A standard Salesforce object representing file attachments related to another standard or custom object.
714
questions
0
votes
0
answers
19
views
Bulk API 2.0 and Attachments Upload
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://...
-1
votes
1
answer
37
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)?
0
votes
1
answer
69
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 ...
0
votes
0
answers
67
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-...
-1
votes
1
answer
193
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?[
0
votes
0
answers
94
views
Is there a limit on how much the JSON binary response from Get Blob Data API can hold?
Refer to this documentation: Get Blob Data, the response of that API is binary.
Document body content is returned in binary form. The response content type isn’t JSON or XML since the returned data ...
0
votes
0
answers
55
views
Attach files from inbound emails to multiple records
We are using email service and apex class to create records on a custom object whenever an email is received. If the email contains an attachment, it is attached to the 'Notes & Attachment' under ...
0
votes
2
answers
166
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 ...
1
vote
0
answers
196
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}
...
1
vote
1
answer
263
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 ...
-1
votes
1
answer
139
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 ...
0
votes
1
answer
238
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": &...
0
votes
1
answer
28
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 ...
0
votes
2
answers
237
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 ...
0
votes
1
answer
183
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 ...
0
votes
0
answers
84
views
Send an already inside SF created PDF via an extra button
We have integrated a subscription tool. This tool generates on a custom object (CB Quote) a quote pdf file. There is also a standard "Send Email" action button which attach the pdf. But the ...
0
votes
1
answer
505
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?
1
vote
1
answer
217
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 ...
0
votes
1
answer
195
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 = '...
0
votes
1
answer
48
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 ...
0
votes
0
answers
61
views
Case comment with attachments not showing in email
when a client raises cases and cc's third-party vendors (who do not have access to our support portal) and when they attach attachments to the case or when we respond via comments with attachments ...
-2
votes
1
answer
35
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 ...
0
votes
1
answer
204
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 ...
0
votes
0
answers
109
views
VF page generating blank pdf after domain masking of site url
We have a VF page that is accessed by the site guest user and it generates pdf in the future method. This code was working fine but recently we did domain masking in our environment using an SSL ...
0
votes
0
answers
30
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?...
0
votes
0
answers
180
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, ...
0
votes
1
answer
450
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:
...
1
vote
0
answers
195
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 ...
0
votes
1
answer
137
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 ...
0
votes
0
answers
885
views
Send email with file attachment in aura component
I have an aura component and I want to send email with attachment. The files gets added to the record but it doesn't gets attached to the email. The email is send without any attachment.
Component:
&...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
722
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....
0
votes
0
answers
46
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 ...
0
votes
1
answer
213
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 ...
0
votes
0
answers
159
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 ...
2
votes
2
answers
347
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 ...
2
votes
1
answer
166
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 ...
1
vote
1
answer
204
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. ...
1
vote
1
answer
333
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...
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 "...
0
votes
1
answer
788
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){
...
0
votes
0
answers
847
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....
-2
votes
1
answer
370
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 ...
-3
votes
1
answer
82
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? ...
1
vote
1
answer
498
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 ...
0
votes
1
answer
296
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. ...
0
votes
1
answer
482
views
Bulk migrate documents from legacy to Salesforce
I'm working in a data migration project and along with other data, I need to bulk migrate attachments from legacy platform to Salesforce. Is there an automated way to migrate the attachment data which ...
1
vote
0
answers
178
views
When I open a Salesforce Attachment it is downloaded but the pdf is empty
I am getting the attachment body using the Rest API.
var config = {
method: 'get',
url: '<Domanin>/services/data/v48.0/sobjects/Attachment/00PD000000HQD68MAH/Body'...
0
votes
1
answer
829
views
Is it possible to upload binary file attachments (AttachedContentDocument) to records using the REST APIs?
I'm trying to programmatically upload a file (AttachedContentDocument) to an Account as an attachment using the REST API. This doesn't seem to be documented by Salesforce.
When I use the Lightning UI ...
0
votes
1
answer
1k
views
How to send attachment/contentdocument to external system using Apex
I am trying to send a simple test document to the external system.
The request goes through well when I do it using Postman but as soon as I try to send similar request from salesforce it comes back ...