Questions tagged [attachment]

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

184 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16
votes
2answers
806 views

Is forcetk accessible in Communities

I am using forcetk to upload files (as Attachment records) in a VisualForce Page and it works fine. But when I access same page in a Community, I am not able to upload the file as I am getting the "...
5
votes
0answers
281 views

Attachments auto download in Spring 16? Workarounds?

A client has an existing integration that runs daily, which calls a 3rd-party system to generate a report on new opportunities; the generated report is added to the Oppty as an Attachment, as an HTML ...
5
votes
1answer
124 views

Is there a way to show attachment logo in activity history?

in Salesforce there will have an attachment logo in emails like this: is there a way i can display attachment logo for activity history as well?
4
votes
0answers
595 views

Is it possible to download ALL Case Attachments as 1 file?

Our cases have most often 3-5 files attached. On the Case page, I can see the files listed. Is there a way to download ALL attachments together? With out the need to click on each of them?
3
votes
0answers
107 views

No such column 'Description' on entity 'Attachment'

I am using salesforce partner web service API Version 42.0. I call description field from attachment object. This attachment is in the custom object I created. And somehow got this error. System....
3
votes
0answers
3k views

Using Lightning input file

I've been using the lightning:input type="file" <lightning:input type="file" label="Attachment" name="file" multiple="true" accept=".docx, .doc, .xlsx, .zip" onchange="{! c.handleFilesChange }"/&...
3
votes
2answers
760 views

Get the image in file - lightning experience

I have to display an image in a lightning component. So in Salesforce classic I put this image in an attachment related to an object, but in lightning experience there is no attachment, or I didn't ...
3
votes
0answers
380 views

The user keep geting invalid session when trying to upload files

We enabled option on Salesforce Files Setting: Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments . After that, user keep getting ...
3
votes
0answers
212 views

Summer '14 CombinedAttachment.ContentUrl returns null

I'm using a StandardController page like the following to try and display the URL of a Google Doc. To test this, I've uploaded a real Google Doc to an Account record, and I can see the 098 record ...
2
votes
1answer
39 views

Insert attachment via Apex failed

When trying to insert new attachments, sometimes I come across this error: Insert failed. First exception on row 1; first error: UNKNOWN_EXCEPTION, BlobField : U#360.3fffffff (Attachment) U#360.aff (...
2
votes
0answers
87 views

Sending 100KB attachment via HTTPRequest throws System.UnexpectedException

I'm trying to upload an attachment from SF to a third party server using REST API, First, my third party does not support base64 content-transfer so I cannot send from SF a base64 attachment. ...
2
votes
1answer
44 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 ...
2
votes
0answers
306 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 ...
2
votes
2answers
286 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 ...
2
votes
0answers
389 views

Conga Composer Attachment creation Lightning Component

I'm trying to generate a PDF attachment using conga composer and attach it to my custom object. Find below the apex code used to construct the URL : Map<String, String> parameters = new Map&...
2
votes
0answers
226 views

Download all files on an Opportunity

Just a little background on my situation, I'm a new Admin/Developer for Salesforce, my company recently started using Salesforce and I'm trying to fulfill all the needs as they come. I have NOT had ...
2
votes
0answers
138 views

Limited speed of downloading from Attachment endpoint

For an Attachment sobject, there is a 'Body' field, whose value looks like: /services/data/v39.0/sobjects/Attachment/00Q5700000v3mCFREE/Body. When I make a GET request to this endpoint using Python ...
2
votes
0answers
65 views

Lightning Component that requires attachemnts

We have a communities page (displayed below) that has a Create Case From for the community user to create cases based on picklist values that are dependent on each other. The Request Type picklist ...
2
votes
1answer
534 views

Visual Workflow - Issuing with copying email attachment to new email

I am trying to create a flow that can duplicate an email message including attachment onto a new case from an existing case that has been closed. So far I have been able to create the flow as ...
2
votes
0answers
420 views

Attachment limitation for REST API

We are working on doing a Sharepoint integration with Salesforce and a part of this service requires Sharepoint to fetch all attachments including body after a particular date. We were working on ...
2
votes
0answers
1k views

Let community user download attachments linked to his contact

During enrollment process our community user signs some documents/agreements which are saved as attachments on contact object (community contact representing the current user). And now on community ...
2
votes
0answers
182 views

Hiding activity and attachments for a profile

I want to hide notes and attachments, Activity of Account and Contact object for a specific profile. Ie., that profile can view all the accounts and contacts but they cant able to see the attachments ...
2
votes
0answers
39 views

Unable to delete a 21 Mb attachment

I created a 21 Mb attachment to test some code I was writing. Later I saw that my DE org ran out of file storage and it wont let me save any new records (even when the data storage is 40%). I deleted ...
2
votes
0answers
74 views

Chunking SObject in SOAP API

I am running a backup on Attachments object using the query: SELECT Id, IsDeleted, ParentId, Name, IsPrivate, ContentType, BodyLength, OwnerId, CreatedDate, CreatedById, LastModifiedDate, ...
2
votes
2answers
384 views

Email sending - multiple attachments

I need to attach multiple attachment through url when doing Send An Email. When I press a custom button through vfpage, it redirects to url from there I can send email with attachment. I need to send ...
2
votes
1answer
471 views

rerender input file losing file.?

I am rendering <apex:inputfile> by adding a new row but I am losing file when I click add row button. I am able to add a new row but the path is lost. Please help! <apex:repeat value="...
2
votes
0answers
83 views

Centralize Object Initialization - (Insert Event with Attachment on same code)

I have a piece of code that sets a Boolean (has_Attachment__c) field to true in an After Insert context variable is executed in an Event in which an Attachment is inserted on the same time. The code ...
2
votes
2answers
1k views

Images are fetched from attachments for Visualforce page rendered as PDF displaying broken images

I am trying to fetch the images from the attachments and trying to display these images in a visualforce page which is rendered as pdf. But in the pdf I am getting broken images. If I remove the ...
2
votes
0answers
306 views

Customizing the article attachment in the send an email functionality

As per standard salesforce functionality, while using Send an Email from a case, you have the option to attach the article as an attachment to the email that is sent. Salesforce has a certain ...
2
votes
0answers
499 views

Notes and Attachments on Contacts in Customer Community

I don't see Notes and Attachments related list on Contacts. From page 24 Communities Implementation guide it says Customer Users don't see Notes and Attachments related list on accounts or contacts ...
2
votes
0answers
332 views

How to expose a Note on a Visualforce Page in Force.com Site

I'm trying to display all the collateral on a record. I'm using the CombinedAttachments relationship in the way below. It works great for Attachment if the user has access to the record. <apex:...
2
votes
0answers
388 views

How can we re-size the attachmant file in salesforce

I am working on salesforce1 app where I have a apex:inputfile tag, on which I have added attribute capture, for capture image using mobile camera (capture=camera). This is working fine with both ...
2
votes
1answer
1k views

regex too complicated error when using split function for less than 1M characters

I am working with an attachment in Salesforce. this is a text file with 7291 rows and each row has 94 columns. I am able to read this attachment record as "Attachment". I am also able to convert "...
1
vote
2answers
51 views

Converting attachment to files, heap size exceed exception

I am trying to convert our existing attachments to contentVersions using batch. But problem I am facing is that some of the attachments are of size greater than 12Mb. So when I try to run my batch I ...
1
vote
1answer
34 views

Convert an apex attachment into a blob?

I am attempting to convert an apex attachment into a blob. My visualforce code is <div class="mt-5 row"> <div class="d-flex justify-content-center col-lg-12"> <...
1
vote
0answers
22 views

Image getting rotated while inserting in rich textarea field using attachament

Facing this problem while uploading image using iPhone salesforce one app. In the attachment the image is showing right, but when the same image from attachament is inserted into rich textarea it is ...
1
vote
0answers
17 views

How to give Content Type while downloading attachment from url?

I am trying to download attachment from link : <a href="{!'/servlet/servlet.FileDownload?file='+attachment.Id}" target="_blank">{!attachment.name}</a> but the attachment is being ...
1
vote
0answers
33 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
140 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
117 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. ...
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) , ...
1
vote
0answers
60 views

Enabling Notes and Attachment Access in Communities for Scratch Orgs

We create a scratch org with community enabled on it. There is a setting on the community (accessible through Setup > Communities > Communities Settings) where we have to manually check the ...
1
vote
0answers
32 views

Add A Visual Image Into a VF E-Mail template from the “Notes & Attachments” related list of a managed package object

This is the code I have written thus far: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" relatedToType="vlocity_ps__InventoryItem__c"> <messaging:...
1
vote
0answers
52 views

Console Attach File - Done button closes tab instead of returning to parent

In the Console, if I attach a File to a Case, the Done button does not return you to that Case. I realized the URL does not have the retURL set like it does in a classic, internal app view. So I ...
1
vote
0answers
105 views

Map Attachment to EmailMessage Record

I have a kind of odd question. We just implemented Service Cloud for about 15 users, as well as email to case. Some of our users want to have the ability to upload existing /historical outlook ...
1
vote
0answers
571 views

Automatically enable Public Link on Attachment Upload

I have a Custom Object with Attachments enabled. When a user uploads a file I'd like to automatically enable Public Link Sharing and create the Public Link for the attachment. I'd also like to ...
1
vote
0answers
88 views

Unable to restrict users to delete attachments sharing from quick actions

Some users need to attach files to opportunities even though they don't own the record. So these users are uploading through quick actions like file in opportunity record. We are restricting users to ...
1
vote
0answers
267 views

How to Purge Case Attachments?

We have a support Community where customers can create Cases and attach files to said cases for our support people to follow up on. I am trying to write an Apex batch job that purges the file ...
1
vote
0answers
28 views

Add lead attachments to email template without Apex / VisualForce

I have set up a workflow to send an email to the lead owner on lead creation. I would like to add the lead's attachments to the email. Without VisualForce or Apex please, as I am a mere mortal with no ...
1
vote
1answer
35 views

There is a Issue with Uploading a File in Online site form,

I have a Online Order form developed through sites, There is a section for Upload a document. When i tried to upload a document that are more than 100 KB it throws the common error UnAuthorized error. ...