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
37 views

How to store huge text in Salesforce record

I want to store the content of a small book in a Salesforce record. I want to make the text to be searchable by the Standard Salesforce UI and via Apex and SOSL and display it in Lightning UI. I know ...
2
votes
0answers
19 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 ...
0
votes
1answer
27 views

Batch callout: How to upload Attachments from multiple objects (dynamically)?

I am trying to upload an Atttachments based on the selection and criteria from Lightning Component that will be saved to Custom Setting. For example, the criteria is Opportunity - Stage - Closed Won, ...
1
vote
2answers
45 views

SF Bearer Token behaves differently for different REST API Methods

I'm currently dealing with an authentication issue with two different Salesforce REST API endpoints. We are trying to consume the API from inside a Visualforce page in a Salesforce community. To do ...
1
vote
1answer
32 views

Trigger on content document to retrieve the body

I believe this question is a possible continuation of this other question: How to retrieve the file content for a ContentDocument object? I am trying to get the body of a JSON file that is uploaded ...
0
votes
0answers
13 views

Logic implementation on multiple attachments of a chatter post

Looking for a solution to put a check on the file type that should be allowed to be uploaded on chatter(lightning experience). For now, I am able to put this check via FeedItem trigger in the scenario ...
6
votes
1answer
104 views

Does sending a file to an external server fall under the heap size limit considerations?

I have to send SFDC files to a third party application, via custom apex. My only concern is, if my file size is 40 MB, will it fail due to the heap size limit? If yes, what is the workaround?
0
votes
0answers
31 views

How can I prevent unauthenticated users from downloading an attachment?

I have a community and internal links to attachments. They end with ...servlet/servlet.FileDownload?file={ID} When the user clicks the link, a window.open(fileUrl) is called. This prompts to download....
0
votes
1answer
33 views

Attachments in FeedItem After Insert Trigger

I'm trying to get the attachments from a FeedItem after insert trigger, but it does not return all the associated attachments. I understand attachments are inserted after the FeedItem is inserted (ref....
0
votes
0answers
24 views

How to Print attachment on a Salesforce site?

I have a Salesforce.com site where there is a button to open a div containing a iframe for a attachment. I'm able to show the attachment but not able to print the attachment using a custon button. We ...
0
votes
1answer
39 views

How to generate an external downloadlink for files

I have created a visualforce page (site) with a dowloadlink from files. I can use this when I am logged in into Salesforce. I want to achieve this for external users by a site. In salesforce It is ...
0
votes
0answers
26 views

Attachment's Name field changes after converting to Lightning Files

I am using the tool Magic Mover to migrate Classic Attachments to Lightning files. However, after conversion of an Attachment to a Lightning file, the Attachment's 'Name' field changes. The ...
1
vote
0answers
31 views

Locking Attachment During Approval Process is failing

I am trying to lock the Attachments related to a custom object using the below 2 lines of code, when the custom record is under approval process. But I am getting an error as: "System....
1
vote
1answer
66 views

Lightning Component - Draw attachment image on HTML Canvas

I have a custom object that has an attached (png) image to it. I'm trying to create a lightning component that pulls the attachment and draws it on a html canvas. So far in the below code, I'm able ...
1
vote
0answers
31 views

How to add generated attachment public link to “Public link Sharing” modal in lightning

I have a Custom Object with Attachments enabled. When a user uploads a file I'd like to automatically create the Public Link for the attachment. To generate public link I use the code below. ...
0
votes
0answers
35 views

How to translate the “Choose File” button and the “No File chosen” labels in the “Attach File” page

I am trying to translate the standard "Attach File" page. This is the page that is opened when you click on the "Attach File" button in every object attachment list: I have succeeded on everything ...
2
votes
1answer
26 views

Is there a way to hide Files from 'Files & Attachments' related list?

I think this is impossible but is there any way to hide Files in Notes & Attachments relatedlist of classic view? We moved only Admins to Lightning and wanted to roll out to other users slowly. ...
0
votes
0answers
20 views

File Upload and Download Security for other file types

I need to change the download behavior for attached files with a .fsc extension. Currently it's behaving as though it were set to execute in browser, but I need it to download instead. Files with .fsc ...
0
votes
0answers
17 views

How to attach a file from downloadable link

I work rest service which provides to write values to salesforce from outside. With this service, some people will send invoice pdf link which is downloadable and i need to attach pdf of invoice to ...
1
vote
1answer
90 views

Hide attachment record without code

Can someone please confirm if is there any way to hide sepecific records from notes and attachments records related to contacts, for example, I have 3 related attachments on contact object but I want ...
0
votes
1answer
18 views

ASP.net calling Salesforce webservice to upload attachment

i have a website created using ASP.net and i would like to allow people to upload files from the website and i want those files is then store in Salesforce. I am not good in webservice but i think ...
0
votes
0answers
30 views

Can we give user permission to add Notes & Attachments even user's profile has Read only for that object

I have a below setting for the object. ORG wide defaults- Private User's Profile - Read, View All Can I have user to add notes and attachments despite the fact he can't edit object. Thanks
0
votes
1answer
20 views

Can the owner of an attached file be set to a queue?

My app's users need to be able to view and edit each other's files that they have attached to records. So my idea was to put my users into a Queue and then set the owner to that Queue on upload. I ...
0
votes
2answers
26 views

Trigger on Sending Attachments in Related List not finding the attachments

I have cobbled together this code in an attempt attach the files in the attachment related list to the email on the change of a field in the Expense record (custom object). The code saves but i get a ...
0
votes
1answer
41 views

Inserting Document Links in Marketing Cloud

According to this article: Insert Document Links, one should be able to insert a link to a stored file. The icon in the article appears to be a copy/paste icon (not sure if that matters) but I can't ...
1
vote
1answer
77 views

Attachment thumbnail in lightning component

I'm wondering how can i display my attachment and its miniature in front of the title in lightning component ? is there a component that does the job ? Here is an example : Thanks in advance.
1
vote
0answers
16 views

INVALID STATUS on ContentVersion create from Attachment [duplicate]

I'm currently trying to create ContentVersion records from Attachment ones but it's giving me the following error: INVALID_STATUS, Documents in a user's private library must always be owned by that ...
0
votes
0answers
27 views

Can I get a public link to an attached PDF?

We have a 3rd party that is generating PDF quotes, and attaches these to a (custom) quote object. I'd like to generate public links for these so they can be emailed to customers - but from https://...
0
votes
0answers
24 views

Notes and Attachment Issues

I have a Custom Object record that I went ahead and added an image attachment to and I also created a note related to that user. I am having two problems: 1) I tried using this solution in the dev ...
0
votes
0answers
14 views

Files accessibility under Accounts

We are migrating to Lightning and we just converted Attachments to Files. Now we recently noticed that, Files associated to Opportunities are not available to view under Accounts which was default ...
0
votes
0answers
18 views

Issue in fetching the Task subject data from it's Attachment list via query

Below is my requirement: For an Account,I want to display all it's task's attachments in a lightning table . The Attachment Lightning table has a column 'related to' which should show 'Task Subject' ...
0
votes
0answers
16 views

Unable to view the complete PDF document in salesforce classic Preview and Lightning Quick View

We have PDF document attached in the Opportunity notes and attachment section in salesforce. When we click on Preview in salesforce classic it wont show us Page 5 and 6 of the PDF. Similarly, In ...
0
votes
1answer
48 views

Attachment downloaded as type file

I have below code to add content document versionData into standard attachment. Map<Id, Blob> bodyContent = new Map<Id, Blob>(); List<ContentVersion> contentDocs = [SELECT ...
0
votes
1answer
43 views

Body is not present on the Attachment csv file

I have a attachment file which is from a Salesforce Org. Now I need to upload those attachment in different salesforce org. In my attachment file, I can't see the body column, instead I can see ...
1
vote
1answer
20 views

Attachment wont come over from site.com

I am trying to have an external site for our clients to be able to submit cases to our team. I have the VF set in place to have them submit a case and allow them to be able to add an attachment for a ...
0
votes
0answers
35 views

Trigger on Attachment object not getting fired after attaching file in an outbound Email [ Related List ]

Trigger on Attachment object not getting fired after attaching file in an outbound Email. Tried both before insert and after insert. Attachment trigger fires while attaching files in the Notes and ...
2
votes
1answer
100 views

SOQL query for attachment body never contains the expected data

Salesforce's developer documentation for the attachment object says (at the bottom of the page, emphasis mine): However, you can't receive the Body field for multiple records in a single query() ...
0
votes
0answers
17 views

Attachment Last Modified Date on Object

I have created a custom object with a Master-Detail relationship to the Account object in SFDC. The purpose of this custom object, for the moment, is to act as a "shell" to house account plan ...
0
votes
1answer
56 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 ...
0
votes
0answers
23 views

Export actual files for Attachments on all Cases

My users have requested that I export all files that they have attached to Cases so that they can place them in a repository for non SalesForce users to access. In the past when I want to export ...
0
votes
1answer
38 views

Could not resolve field 'Name' from <apex:inputField> value binding '{!cs.Name}' in page ProductCaseExternal

Trying to build a webpage for teams to be able to submit cases and attachments. For some reason I am getting a "Could not resolve field 'Name' from value binding '{!cs.Name}' in page ...
0
votes
1answer
53 views

Disabling download attachments to guest users

I would like to disable the possibility to download and read attachments to guest users of my community by requesting them from https://<salesforce-url>/community/servlet/servlet.FileDownload?...
1
vote
1answer
53 views

while creating case record through vf page, i want to give option to add attachment before saving case record

I have a requirement where user should have option to add attachment before saving the case record. Currently i am creating a case using visualforce page. please suggest how can i achieve this? Vf ...
0
votes
2answers
244 views

Apex Trigger on Attachment object not being fired

I wrote this apex trigger for Attachment sObject following the answer here. The trigger basically counts the total number of attachments for a record of type Assignment__c and updates the field ...
3
votes
2answers
100 views

Need help understanding this apex trigger example

I'm just starting out in apex. I want to create a trigger that counts the number of attachments in a record of a custom object. I came across an example here. Here's the trigger code: trigger ...
0
votes
1answer
46 views

Public Site with access to attachments

I am currently creating a public site. This site should display attachments that are attached to a custom object. My plan was to first load the ContentDocumentLink of the object and then the ...
0
votes
1answer
87 views

How can I batch rename attachments I've exported?

I'm trying to rename exported attachments using the mac instructions here: https://help.salesforce.com/articleView?id=000232859&type=1 But I'm receiving a No such file or directory error and I ...
0
votes
1answer
26 views

HTML link attachments and a bash script to download them all

As the title implies. I'm looking for a bash script that will iterate over html files in a folder and download the files to the same folder. I'm hoping someone in here has run into this before and hs ...
0
votes
0answers
23 views

Attaching a pdf dynamically into a transactional email (Triggered send)

I need some suggestion here. I need to attach a pdf(for e.g. a invoice copy) on user demand. Which I am trying to implement it via Triggered send. Sender system can send the PDF along with the ...
0
votes
0answers
41 views

Exporting attachments via contentType results in some .pdf coming through as .url or .html

As the title implies. Here is the code. List<Messaging.SingleEmailMessage> attachmentEmails = new List<Messaging.SingleEmailMessage>(); Map<Id, Case> caseMap = new Map<Id, ...