Questions tagged [attachment]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

REST API: Get body of deleted attachment

I have an app that calls the Salesforce REST API to retrieve attachments stored in Salesforce. It makes a call like this to get the attachment body: /services/data/v52.0/sobjects/Attachment/...
0
votes
0answers
33 views

Access the PDF which has Sensitive data from Salesforce [closed]

I am uploading the PDF from Custom Component. But I could not Open that PDF from Salesforce standard attachment tap Since that PDF has sensitive data. I want to know how to upload the PDF which has ...
0
votes
0answers
16 views

How to properly rename Attachment names before or after export with Dataloader/Dataloader.io?

Hello everyone and thanks for reading! I have a request to export all the Opportunity Attachments that meet certain conditions. These Attachments are .PDF files. I could do that using Dataloader.io ...
0
votes
1answer
27 views

How to fetch the latest file in SOQL from each Order record

I am querying files from the list of Order records through SOQL. I have added my SOQL query below for your reference. I want to query only the latest file which begins with 'IO_' from each Order ...
0
votes
1answer
45 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 ...
-2
votes
1answer
49 views

Count the number of pages of a PDF stored as an Attachment from Apex code [duplicate]

Is there a way to get the count of pages in an Attachment? List<Attachment> attachments = [SELECT Id, Body FROM Attachment WHERE ParentId = :myRecord]; I am using this SOQL to get the Body, but ...
0
votes
1answer
52 views

(Case)controller.getRecord(); - Returning Null in the visualforce page [closed]

I'm trying to get the record that starts a visualforce page but it's returning null. Can anyone point out the problem to me? Visualforce: <apex:page standardController="Case" extensions=&...
0
votes
0answers
25 views

How to view Salesforce Files in Notes and attachments related list

Is there any way or setting to allow Salesforce Files to show up in Notes and attachments related list?
0
votes
1answer
45 views

How to remove access to all files or attachments from a user

Just like I can remove access to a particular object, how can I remove the user's access to Files or Attachments? Right now they can still access it if they use the global search function. I think ...
0
votes
0answers
27 views

Is it possible to create direct link in apex trigger or any other solution to ensure file attachment is required before save?

I want to create a required file section where it will pop out error if no file is attached before save? Since the file section as in image shown cannot be created inside my custom form, can i create ...
0
votes
1answer
36 views

How to force ANSI Encoding on a generated CSV attachement in apex?

I want to generate a csv attachement and force ANSI encoding how can i do that? Code to create my attachement: string rows = 'column1;column2;column3'+'\n'+'a;b;c' Attachment attachment = new ...
0
votes
0answers
17 views

iOS file download

I need to download a binary file on the iOS for given CombinedAttachments objects. How can I do this? I tried to generate some links, but I was only able to download the JavaScript script file that ...
0
votes
1answer
94 views

Issue with attachment in EmailMessage created via Apex trigger

I have a logic in EmailMessage trigger to create a new case when customer replies to a closed case. If the case is closed, I am cloning the case record to create new case. Since we cannot reparent ...
1
vote
1answer
54 views

Attachment to File Trigger on Attachment. File not having any content after the attachment insert

Here is my attachment loop to convert into Salesforce Files. The document as Files is created along with the title and content type however it has no content or sometimes '1' or 'MQ==' which is not ...
0
votes
1answer
47 views

Object reference not set to an instance of an object. (Attachment Trigger to Convert to Files)

I've been stuck with this trigger for 2 days now. Essentially the trigger will convert any attachments that are generated in the Agreement Object to Salesforce Files. However upon generating ...
0
votes
0answers
11 views

Overriding Name for QuoteDocument

We create PDFs from quotes, and they get filenames on the form VX.pdf (where X increments). So customer wants to have the filenames be -.pdf. I've tried setting the ContentVersion PathOnClient to ...
0
votes
1answer
160 views

Visualforce - Uploading Files via JSForce/JavaScript

I would like to upload an attachment greater than 135kb (view state limit) through Visualforce and link it to a new object record being creating via a custom controller. My understanding is that I ...
0
votes
2answers
152 views

How to get ContentDocumentId FROM ContentVersion

I have a Pdf attachment which is linked to an object in a Package. The public site is also part of the package so I do not have acces to query all files. I want to be able to let a public site guest ...
0
votes
1answer
31 views

'Enable Notes' strange behaviour

When in Notes Settings 'Enable Notes', there are some strange situation. They stop appear like Note records, and i don't know what object they represent now. And, logically, they don't appear in '...
1
vote
2answers
441 views

Upload and store 50 MB file from LWC

I have a LWC that, is retrieving the body of an attachment using apex. This is retrieved just as blob, because handling it in Apex would hit limits such as String too long os Heap Size exceeded, cause ...
1
vote
1answer
66 views

How to insert attachment using transient variable

I am using the transient keyword to allow users to upload files greater than 135kb (viewstate limit) on a VF page however since the transient keyword doesn't transmit the attachment past the view ...
1
vote
1answer
17 views

Count attachments by SobjectType

In a legacy org that is still using Attachments, I wanted to get a handle on how many Attachments there were per SObjectType. How can I do that with SOQL?
0
votes
0answers
11 views

Folder structure in Notes & Attachments

We will use "Notes and Attachments" in Opportunity record to upload some documents. Those documents are related to Electricity supplies (e.g. Id card, last copy of bill etc). Is there a &...
0
votes
0answers
9 views

Working with Files and attachments and the Salesforce API

I'm working with a specification from a business client where he wants to route attachments to records to parent objects of those records. Fine and dandy'n'all BUT after looking at this I see that ...
0
votes
1answer
40 views

PageReference method not returning null

I have developed a Visualforce page that takes an input file from the user and does not let the user proceed to the next page only if they did not upload an attachment (attachment is null). However I ...
0
votes
0answers
20 views

Unable to restore Attachment from merged records

A user merged two Account records. However the attachment was lost in the process. I am unable to restore the attachment. I trued this in the Workbench Select id, Description, name, OwnerId,...
0
votes
1answer
28 views

Inserting 13k PDF Attachments each 192kb in Attachments object

I want to insert 13k PDF attachments in Salesforce. Each of the PDF is 192 kb. I have created a csv file with the name of the pdf and it's relative path on the local drive. I tested inserting 15 ...
0
votes
1answer
42 views

Is there a way to send attachement image to Salesforces server with Web to leads forms or Web to case & with using AJAX?

So what I am looking for in an indication, because all articles I read about when it comes to sending attachment are dealing with web to lead or web to case forms with default submission! But what ...
0
votes
1answer
459 views

Exporting attachments with Apex Data Loader

I am trying to export attachments from Salesforce using Apex Data Loader. I am using the below query in Apex Data Loader. Select Id, Name, ParentId, ContentType, BodyLength, Description from ...
0
votes
1answer
37 views

How to get Attachement Ids of sobjects for saleforce?

How to get Attachement Ids of sobjects for saleforce? I am already attached one pdf file in one of my Account object then also its not showing here. attachement is added as a notes. I am not getting ...
1
vote
1answer
65 views

List of Salesforce objects those are File types like Document, StaticResource, Contents etc [closed]

I would like to know the list of Salesforce objects whose are based of FILE type. For example Document, Attachments, ContentVersions, Static Resources etc I would like to see what more objects comes ...
1
vote
1answer
144 views

How to get access to attachments in Case Feed Item using Rest API

I'm doing sync with Salesforce. In my case I should sync both Case and CaseFeed items. When my CaseFeed items changed I get the notification from Salesforce and create/update the CaseFeed item in ...
0
votes
1answer
54 views

Create salesforce record from PDF

I am trying to build a utility where a user can upload a pdf or word and after successful upload, it should create a record in salesforce by reading that pdf/word? Is it something doable? If not, can ...
0
votes
0answers
20 views

Notes migration from Salesforce ORG showing html tags

Migration of Notes: we migrated .notes from DEV org to PROD org but when I open the notes in the PROD I'm getting html tag along with the notes something like this: > <p>&nbsp; &nbsp; ...
0
votes
1answer
24 views

To attach a VF page as a File in the record

I have attached a VF page in Notes/Attachments. But now i wanted it to get attached in Files. The below code is working fine if i attach it in Notes/Attachments. Blob pdfBlob; PageReference ...
0
votes
0answers
25 views

How to rename the downloaded attachment

I am facing an issue where I have uploaded an attachment to the content folder and I have created a hyperlink in an email template so that you can download it. The issue is that the name of the ...
0
votes
0answers
17 views

SOQL query to get files names related to account [duplicate]

I want to get the names of all related files in the Account object. Below is my query: SELECT Name, (SELECT Id from Attachments) FROM Account WHERE Id= '0014K00000C6b7pQAB' When I run the query, it ...
0
votes
0answers
42 views

How can I download opportunity attachment through REST API?

I have a list of fileID's. Lets say, 1000. I'd like to loop through and download these files. I'm unable to find the call that does this? I can already authenticate through the API, just need to ...
0
votes
0answers
23 views

Visualforce email template attached blank file

I have the following visualforce email template. <messaging:emailTemplate subject="Unpaid Invoice" recipientType="Contact" relatedToType="Invoice__c"> <messaging:...
0
votes
0answers
25 views

Error: Too many nested getContent calls [duplicate]

I am trying to attach my Vf page which is rendered as pdf to the Files section. But the error " Too many nested getContent calls." is being thrown. The code is as follows: VF Page (Only ...
0
votes
1answer
70 views

Prevent Attachment deletion on Case deletion

I have a requirement where Cases closed over x amount of days should be removed from Salesforce. However, when deleting the Case, the subsequent e-mail messages and attachments linked to both e-mail ...
0
votes
1answer
123 views

Bell notification when file is attached to an account [closed]

I need to create notifications whenever a file is uploaded to an Account. I need this notification to be shown in the bell icon. Thanks Satish
0
votes
1answer
43 views

Rerender files related list on opportunity record page after creating content document link

I use a LWC on an opportunity record page to create a pdf document that is then converted to a base64 string. From this a ContentVersion object is created and a ContentDocumentLink from an imperative ...
0
votes
0answers
69 views

File upload not working in Lightning and Safari browser

I am unable to upload files in Lightning, using Upload Files option in Safari browser. Repro Login as an admin or standard user Go to opportunity record Hover the mouse cursor & Click on the '...
0
votes
2answers
23 views

Store Notes and Attachment as a Attachment

I have Added Notes & Attachment in Related List , So when I upload any svg image , It get stored as a file instead of Attachment . So How can we store that image in Attachment instead of ...
0
votes
0answers
32 views

Upload Attachment at the time of Record Creation

I have a record, Intake. When a VisualForce form is filled by an outside user, an Intake record is created when 'submit' is clicked, using the standard controller action 'save'. The user is then ...
0
votes
1answer
35 views

Store string form data in attachment

I am passing some data as string from my Visualforce page to apex via apex function, I store that data by in attachment body through apex code. I came to know from response to my previous question ...
0
votes
1answer
86 views

Maximum Attachment size

I am passing some data as string from my Visualforce page to apex via apex function, I store that data by in attachment body through apex code. What is the maximum size of data that I can store in ...
0
votes
1answer
333 views

Attachments not related to email-to-case

I use the email-to-case functionnality to create a case from an email. I use an apex handle class to create the case and the email message. It works good but I don't want the attachment in the case ...
1
vote
1answer
291 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 ...

1
2 3 4 5
14