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

learn more… | top users | synonyms

0
votes
0answers
22 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
19 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
29 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
12 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
24 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
24 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
32 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
26 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 ...
1
vote
0answers
21 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
35 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
24 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
29 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
47 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
27 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
38 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 ...
0
votes
0answers
26 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
49 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
65 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
51 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
136 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
84 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
44 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 ...
1
vote
1answer
37 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
45 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
73 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
36 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
57 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
23 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 ...
1
vote
1answer
53 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
106 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
14 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
162 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
38 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
54 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
55 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
39 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
89 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
54 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
40 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
25 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> ...
3
votes
1answer
50 views

List all attachments and notes for an id in date order

I have been using the below SOQL to get the Notes and Attachments that have been added to a record in my Custom Object Request_For_System_Change (alongside all the other fields I need, the below is ...
0
votes
1answer
75 views

SOQL Query getting Notes and Attachments from Custom Object

I am getting an error when executing the below query in the Developer Console: select Id, Request_Title__c, (SELECT Id, Name FROM Attachments where id='a3K8E0000000BIj'), (SELECT Id, Title FROM ...
0
votes
0answers
24 views

Insert failed. attachmentimg: Class.AttachmentImgController.saveImg: line 26, column 1

Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Parent]: [Parent] Error is in expression '{!saveImg}' in component in page ...
3
votes
1answer
79 views

Enabling Notes and Attachments after custom object creation

When I first started our custom object Request_for_System_Change, I didn’t check the box to allow Add Notes and Attachments – and according to the documentation SALESFOREC.com - Fields for Defining ...
11
votes
4answers
384 views

Download Invoice PDF's On List View without saving to Notes and Attachment as a zip file

Scenario: Am having Invoice__c Object. On the list view I have download button to download the selected invoices PDF's. What my below code is doing is it is after fetching the selected records id's of ...
0
votes
2answers
41 views

Multiple Download on List View of Invoice Object

I need to achieve multiple download on list view of Invoice object. Requirement: Invoice Object has Notes and Attachments Related list. If Notes and Attachment is not null for Invoice Record then it ...
0
votes
0answers
25 views

Store record with image attachment and thumbnail with iOS REST SDK

I'm trying to upload an image record which includes a description, image file and a thumbnail. I can create the record with the description and the thumbnail is just a formula field with the ...