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

learn more… | top users | synonyms

1
vote
1answer
20 views

How to integrate gmail with salesforce for placing the Attachments dynamically?

I have one button in my Custom Object. Generate PDF Whenever i click this button, the PDF will be generated... This is a post scenario of my requirement. But Present, They want another button for ...
3
votes
1answer
20 views

How to save chatter post image as attachment

Whenever an image is posted in record chatter feed post, i want to save that image into attachment. How can i get the image from record feedpost. trigger FeedToattach on FeedItem (after insert) { ...
-1
votes
0answers
23 views

upload 25mb file attachments to salesforce using JS Remoting [duplicate]

I want to upload 25mb file attachments to salesforce using JS Remoting. How can I do so?
0
votes
0answers
16 views

Is there a way to restrict access to Notes and Attachments while doing a global search

Is there a way to restrict the search on notes and attachments for certain profiles? If we type in doc or pdf in the global search then it shows all the notes and attatchments. There are so many ...
0
votes
1answer
24 views

Remove pictures as attachments inside an email

I would like to know when an email is moved from the app "Salesforce for Outlook" to Salesforce, is there a way to remove pictures as attachments inside that email? Regards Aurélien
1
vote
1answer
23 views

Limit for number of files AND size to upload in salesforce?

On my page I have an <input="file" /> and I allow the users to select as many files as they want before they insert them in salesforce. When the user triggers the uploading process I pass each ...
1
vote
1answer
28 views

Raising Test Code Coverage on a Trigger that Counts Attachments

I have utilized the code from Sunil Sharma's blog here for a trigger to count attachments on a record. The only change that I have made here is that I have used "Case" instead of "TestObject__c." ...
0
votes
0answers
30 views

add visualforcepage in notes and attachments in standard object on the click of button in a object

i want to add a visualforce page in Contacts object on th click of a button in Accounts object Nd when we view the vf page as a attachment it should be presented in the form of doc file. here is the ...
0
votes
1answer
33 views

Insert Attachment Saving 5 files in Notes and Attachment

I got into a problem when I save the pdf to lead attachment. Here is the scenario I have a Button on detail page of a Custom Object which is Child of Lead. This button opens a VF page and renders as ...
1
vote
2answers
49 views

Need to restrict <apex:inputFile> extension using jquery

I am working on Visualforce Site. I am using to attach the attachment in contact. I want to restrict the user to attach only image, PDF or .jpg file at client side. How can I do this using jquery? ...
2
votes
1answer
22 views

Assigning attachment on lead conversion to opportunity

I have a problem with apex code thats supposed to delete attachment added to account after lead conversion, and then add the copy of this attachment to opportunity. But when i convert my lead, ...
0
votes
2answers
30 views

Users having read access for an Opportunity is not be able to attach a file in that Opportunity

Users having read access for an Opportunity are not be able to attach a file in that Opportunity. Kindly help me to accomplish this.
0
votes
0answers
30 views

Migrate attachments to Salesforce Files

One of our clients has a requirement to migrate attachments to Salesforce Files. They have also enabled this option from Winter '16 to allow file uploads to goto salesforce files instead of ...
0
votes
2answers
39 views

Read any kind of attachment and display it as PDF

Is there anyway you could read an attachment on your record(PDF, Image, Word etc) and display it as PDF on your visual force page? Thanks.
1
vote
1answer
33 views

URLFOR: Invalid parameter for function

I do get the below error randomly and could not able to figured out what causing this error Error: Invalid parameter for function URLFOR Error is in expression '{!URLFOR($Action.Attachment....
1
vote
0answers
23 views

Web service API email send with attachement

I'd like to send an attachment (let's say an on-the-fly generated HTML document) with an HTML email I'm sending via the Web Service API. I don't see anything called out in the docs for this, just ...
1
vote
1answer
45 views

Comparing a text with a attachment body

I want to compare a text with a attachment that is added to a custom object. For example, check if the word "Test" is placed in the attachment body.
0
votes
1answer
25 views

At what point are attachments saved to an object - need to pick them up in trigger

I have a custom object which is created via an online form. It is possible to add attachments and this all works fine - the object is saved and so are the attachments. In the 'after insert' trigger ...
1
vote
1answer
34 views

How to extend salesforce 'send quote by email' page

Salesforce provide simple way to send quote by email (opportunity->quote->send email), but I need to implement another logic of sending emails: I need to send emails using API of third-party service. ...
0
votes
1answer
50 views

Querying attachments in apex class

We have a custom object. In the notes and attachments related list of this custom object we have uploaded few pdf and ms-word files (each of them of size < 5 mb) we are not able to access the ...
1
vote
0answers
29 views

Notes and attachment of a junction object

I have a custom junction object. I want to enable the notes and attachment for the custom junction object. Will it be possible to view just the note and attachment from a custom link? my requirement ...
0
votes
1answer
43 views

Add custom field to attachment related list

I need to add a custom field to attachment related list, so that while uploading documents user can specify business type of document. I found it is not possible to customize standard attachment ...
0
votes
1answer
21 views

Getting fields in columns excel sheet

I am using the following code to insert a csv attachment on opportunity object. account testacc = new account(name = 'test123acc'); insert testacc; Opportunity opp = new opportunity(Name=testacc....
0
votes
0answers
29 views

Attchment on Opportunity in Batch apex

I have a requirement of creating an excel or pdf from batch apex. I insert few records in batch on some business logic. There are few records which i skip from creation if the logic is not satisfied. ...
2
votes
1answer
59 views

Parent id field of feed item object

The FeedItem object is used in my Org. There is a field called parent ID. But i am not being able to understand to which object is FeedItem related to? is there a way to see which object is parent id ...
1
vote
1answer
84 views

How can I display Notes & attachment in salesforce1 mobile [closed]

I need to display notes and attachment in salesforce 1 in mobile view. please can any one help me out
1
vote
1answer
65 views

Getting Attachment Id with subquery using rest api in c#

Hey guys i am trying to get attachment Id in a subquery via the rest api in c# here is my query: SELECT Id, Name, First_Name__c, Middle_Name__c, Last_Name__c, (SELECT Id FROM Attachments WHERE Name = ...
2
votes
1answer
225 views

Display an attachment in a Lightning component

I want to display an image, which is in an attachment in a customized object, in lightning component. I make a query like that in the server side controller : @AuraEnabled public static Attachment ...
0
votes
2answers
102 views

How to attach file to Feed Item in SOAP API v36

Can someone give me an example of how to attach a file to Lead using FeedItem in SOAP for version 36 since ContentData and ContentFileName fields are obsolete? My previous code was FeedItem post = ...
1
vote
1answer
52 views

Notes and attachment related list questions

1) A user wants the notes and attachment related list for certain types of documents (i.e. finance related) and another related list for other types of documents (i.e. management). Anyone know how to ...
1
vote
0answers
14 views

i want the logged in user associated with account to see their attachments only when they click on attachment

My VF : <apex:page controller="AttachmentUploadController" sidebar="false" > <apex:sectionHeader title="Program Documents " subtitle="Attach a File"/> <apex:form enctype="...
1
vote
1answer
38 views

attachment in email

I'm trying to send an email with an attachment that is pulled in via a link, eg. <apex:image url="{!URLFOR($Action.Attachment.Download, attachmentId)}" /> And the goal is to be able to have ...
0
votes
1answer
32 views

Not able to add a blank space in the email attachment

I am trying to attach an ics file and I'm just not able to add a blank space between certain characters. I tried using &nbsp; and <br/> to even break the line but instead it's printing as it ...
1
vote
1answer
47 views

Delete Account Attachments where file format is JPEG, PNG using Trigger

I want to delete attachments on account where file format is JPEG or PNG using trigger. Is it possible? How?
0
votes
1answer
104 views

SAlesforce Attachments/ documents with out size and format limitations

In our organisation we need a custom object "Upload documents" where users should have ability to upload files of any size (No size limit ) and any format. All the documents should be saved in our ...
1
vote
0answers
42 views

How to display attachment in force.com sites (In portal pages)

I am trying display the attachment in force.com site (In my portal page), I have used the following code <apex:page showHeader="false" sidebar="false" standardStylesheets="false"> <embed ...
0
votes
1answer
60 views

unable to deserialize salesforce attachment, exception thrown

Attachment a = [ SELECT Id, Body FROM Attachment WHERE Id='00Pi000000ZdBqv' ]; String jsonStr=JSON.serialize(a); Attachment b = (Attachment) JSON.deserialize(jsonStr,Attachment.class); ...
0
votes
1answer
24 views

Can I make my app recognize the type of document my users have uploaded ?

This is not about using ContentType to identify the type of file (.pdf,.doc,.xls etc). This is about identifying which type of company form/document my user has uploaded. For instance, I have an app ...
2
votes
1answer
57 views

How can we print attachments from custom Visualforce Page?

I have a small requirement is there any way in which we can print Attachments in custom VF page store under any record(ex: Account.) My Requirement is display a table and give a link to print. When ...
0
votes
0answers
140 views

How we can send http request with XML data and binary attachment?

Currently while doing integraion with one of client server. We need to send attachment. Sever accepts attachment in binary form along with the XML data(file attribute). i.e. The XML Payload have two ...
2
votes
0answers
16 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 ...
5
votes
2answers
180 views

trigger BeforeUpdate failed when inserting attachments into new record on Demand object

as a follow up to my earlier question I am now getting BeforeUpdate trigger errors when trying to insert attachments as it says the ParentId field is not writable. so here below is the code that is ...
0
votes
1answer
41 views

Notes and Attachments - differentiate by ContentType , query

Is there any way to distinguish between the types of attachments. Essentially I wanted to create a new field on type on the attachments object for distinguishing between pictures, docs and excel etc. ...
2
votes
1answer
57 views

Attachments on Emails don't fire the Before Insert Trigger on Attachments

We are currently undergoing a security audit of our Organization. We were cited for a finding for not preventing executables from being uploaded to our Organization. To resolve this, we created a ...
4
votes
0answers
64 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 ...
1
vote
1answer
43 views

After insert trigger on Attachment object doesnt fire

Was anyone successful in getting their after insert trigger on Attachment working? I don't see any debug logs for the trigger when I try to invoke from the UI Updating post to add my code: trigger ...
3
votes
1answer
110 views

Parsing PDF file attachments

I have have pdf files uploaded as attachments in Salesforce. Is there any a way (an app on App Exchange) that would allow me to parse contents of pdf files, preferably as xml or json. The files ...
0
votes
2answers
57 views

Trigger to create an attachment

I have a requirement where an attachment has to be auto created whenever a record on Object A is Created. The attachment is a child to Object A. And the attachment type is ".docx".I dont have a ...
0
votes
2answers
54 views

upload an attachment in salesforce from vf page size upto 2gb into document in salesforce

Can i upload file size of 1gb or 2gb(pdf,jpg,doc,ppt etc) in document from vfpage.i think its work from rest api give the code or any link
0
votes
1answer
30 views

Id value 015d0000009LcU3 is not valid for the Folder_Items__c standard controller

this is class global with sharing class treeInlineController { public String actId{get;set;} public treeInlineController(ApexPages.StandardController sc){ List<Attachment> ...