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

learn more… | top users | synonyms

0
votes
1answer
46 views

how to upload files using Apex code

I am creating a VF page to upload files to to the Files related list of an object : I found out that files object is ContentDocument object. I am figuring out how I can create this ContentDocument ...
1
vote
1answer
30 views

Cannot deserialize instance of base64 from VALUE_STRING value

I have a class below where I am inserting a new merchandise object and also creating an attachment to be attached with this merchandise object(in notes and attachment object) using a http POST . I am ...
3
votes
1answer
54 views

Attaching document by Calling Apex REST resource

I am trying to create an attachment in Salesforce using a Apex method which is exposed as Rest resource. I am trying to create a merchandise record where the attachment should be attached to the notes ...
1
vote
2answers
40 views

Attachment Uploaded, but not viewable by Parent Object - PHP REST API

So far I'm successfully uploading a test document to Salesforce. An ID is being returned with no errors. However, I can't see the uploaded files through Salesforce itself when I view the object ...
0
votes
2answers
37 views

Uploading an attachment using inputfile tag

I am trying to create a VF page using which I can attach files and save it to notes and attachment object. I am almost close but there is some problem with the code. I am using input file tag to get ...
1
vote
1answer
30 views

visualforce to create a attachment for an object

I have an object - test_Object2__c for which i am creating a VF page. What I am trying to do is get an input from user for attachment and insert that attachment in notes and attachment related list of ...
0
votes
0answers
16 views

Base64 attachments in web to case (possible workaround?)

I am looking at a fast way to post to salesforce instance. Web to case appears to be the easiest way to implement. I understand that the attachements are not supported in web to case. However, could I ...
0
votes
0answers
22 views

Image is not display in word document?

Apex Controller: public class AttachmentImageDisplayController { public Attachment att {get;set;} public String recId; public AttachmentImageDisplayController(ApexPages.StandardController ...
1
vote
1answer
32 views

attachment image show on vf page

I have preview page and pass Id in url its show break image not showing proper image this is my class code Public Class displayImageExtension { String recId; public displayImageExtension(...
1
vote
0answers
28 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
24 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
19 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
27 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
27 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
37 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
31 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
38 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
57 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
36 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
32 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
1answer
34 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
52 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
40 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
58 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
43 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
57 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
31 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
51 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
71 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
96 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
83 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
314 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
121 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
62 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
15 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
41 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
49 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
128 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
54 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
72 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
26 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
64 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
173 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
18 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 ...