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
0answers
140 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
381 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. ...
1
vote
1answer
117 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
63 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
193 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
71 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
32 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 ...
1
vote
1answer
133 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
486 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
257 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
33 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
48 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
224 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
283 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 ...
2
votes
1answer
572 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
38 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
531 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
160 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
62 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
196 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
172 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
985 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
254 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
259 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
262 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
30 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
114 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, ...
1
vote
1answer
79 views

Best way to export records with attachments

I'm specifically trying to do this with cases. We have a script written internally to handle this but I just wanted to make sure there wasn't a better way.
0
votes
2answers
135 views

AmpScript file attachment to email

Trying to switch out the static attachment in an email to dynamic based on a Data Extension(DE). The Static: %%[ %%=AttachFile("FTP","AIDI.pdf")=%% ]%% And what I'm tried to replace it with: %%[ ...
0
votes
1answer
600 views

Upload Attachment via Rest API

I use standard Rest API (/services/data/v39.0/sobjects/Attachment) to upload attachment from our Support Portal and get saved in case object which works fine, but when I try to open the attachement ...
2
votes
2answers
2k views

Upload Attachments to Files Related list using Apex

When user attaches files on Notes and Attachments related list from Salesforce UI then files gets attached to Files and Notes and Attachments related list. But when I do it from vf page/apex then it ...
3
votes
1answer
506 views

Save PDF Visualforce as attachment - mergefields not showing

I really need your help because I'm completely stuck. I want to render a PDF from a Contract in Salesforce, and save it as a record's attachment. I followed several tutorials and I created a PDF ...
0
votes
1answer
337 views

How to attach a file to a custom object from a visualforce page in lightning experience

I need to attach a file to each record of a custom object from visualforce page in lightning experience.Here the i have tried so far but this fails to attch the file. VF Page: <apex:page ...
2
votes
0answers
347 views

Files not attached when forwarding emails (Classic)

In classic when you forward an email containing attachments, they are automatically included on the email; you see them below the email editor in the Attachments section. This is not the case for ...
0
votes
1answer
20 views

Attachment not getting saved

My vf page contains account records with its related lists that has notes and attachments i have given new attachment link which is input file and one upload button on vf page to upload attachment, ...
0
votes
1answer
2k views

What's the difference between “Files” and “Notes & Attachments” related Lists? [duplicate]

What's the difference between "Files" and "Notes & Attachments" related Lists? They seem to be a carbon copy of each other whenever I upload a file to one or the other.
0
votes
1answer
1k views

Finding records of an object type that has any attachment

I need to find whether records of a object type have any attachment on them or not. I see that below query doesn't work. SELECT Id, ParentId FROM Attachment WHERE ParentId like '001%' . Is there a ...
0
votes
1answer
215 views

Use Salesforce Sites page in an iFrame on external site

I have a requirement to allow web-to-case form to upload attachments. Now, as per the docs there are two possible ways to do so: Implement Visualforce pages in Force.com Sites. Using Force.com web ...
0
votes
1answer
670 views

How to clone “EmailMessage Attachments” to a custom object

I'm leveraging 'Send an Email' button for a custom object(comm__c) which has a lookup to the Case object. The users sends email using this button via Related List on the case page layout. I'm ...
1
vote
1answer
492 views

REST Upload attachments - Json Deserialization failed on token 'null'

I'm using simple-salesforce to migrate attachments from one org to another. I'm encoding with base64 but am getting this error: SalesforceMalformedRequest: Malformed request https://my_org.my....
2
votes
2answers
431 views

Sharing settings on accounts, cases, emails and attachments

We have a requirement in which we need to make some accounts private. We do this by flagging the account with a deleted field. This flag is used in our sharing settings. We are using the exact same ...
1
vote
1answer
30 views

Get attachments from related object

Is there a way to get an attachment from a related object? Example: SELECT RelatedObject__r.Id , RelatedObject__r.OtherField , (SELECT RelatedObject__r.Id FROM Attachments) , ...
0
votes
1answer
337 views

Email attachment coming through as .bin

I am working on a class with an invocable method to send an email with pdf attachment. Currently I am able to send the email correctly, however the attachment comes through as a .bin in outlook365 or ...
0
votes
1answer
62 views

File upload via related list not working in IE11

at the moment I'm facing a really weird issue: I have a custom VF page, that embeds <apex:relatedList list="CombinedAttachments"/> and also a custom VF component. The uploading of files ...
3
votes
1answer
1k views

Issue while uploading file greater than 5MB

I am trying to upload a file in salesforce and send it to Sharepoint for storage using synchronous call. However, when i upload file more than 5MB i am encountering an issue like below :' {FAILURE=...
4
votes
2answers
1k views

ContentNote not inserting

I am trying to insert a new ContentNote and link it to an opportunity with ContentDocumentLink. However, after inserting the content note, the ID returns as NULL, so referencing it in the ...
0
votes
0answers
37 views

Related List Files vs Notes & Attachments [duplicate]

users want me to add a related list to a custom object to allow you to add attachments. What is the difference between the "Files" and "Notes & Attachments" related list?
0
votes
1answer
597 views

System.DmlException: Insert failed. first error: REQUIRED_FIELD_MISSING, Required fields are missing: [File Name, Body]: [File Name, Body]

page: <apex:page StandardController="TicketIntakeform__c" extensions="forAttachmentsCls"> <apex:form> <br/><br/> <apex:panelGrid columns="1" style="display: ...
1
vote
1answer
589 views

System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Parent]: [Parent]

forAttachmentsCls class public class forAttachmentsCls{ public Attachment file{set;get;} public forAttachmentsCls(){ file = new Attachment(); } ...

1 2
3
4 5
13