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

learn more… | top users | synonyms

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
21 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
39 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
22 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
35 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
20 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
33 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
40 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
31 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
81 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
65 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
41 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
34 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
28 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
41 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
58 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
31 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
43 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
52 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
73 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
146 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
32 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
52 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
47 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
33 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
75 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
50 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
39 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
20 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
45 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
54 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
22 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
65 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
337 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
40 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
19 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 ...
1
vote
1answer
61 views

Visualforce Attachment PDF Upload Maximum view state size limit (135KB) exceeded

I have done some research and most of the solutions is not working for me. I am trying to upload multiple pdf files, and I right now it doesnt even let me upload a single file due to the Maximum view ...
0
votes
2answers
22 views

Open Attachment on Create of Child Record (2) [duplicate]

I have a requirement for a custom app I am building to open an attachment on the parent record in a new window on create of a child record. I have parent object Quality_Assessment__c with child ...
1
vote
0answers
39 views

Open Attachment on Create of Child Record

I have a requirement for a custom app I am building to open an attachment on the parent record in a new window on create of a child record. I have parent object Quality_Assessment__c with child ...
0
votes
1answer
30 views

Create Test in this following Controller [closed]

How to create a test class from this controller? public List<Event_Logo__c> getEventLogo() { con = new List<Event_Logo__c>(); con = [SELECT Id, (Select Id, Name, ...
4
votes
1answer
37 views

Custom Object's Notes&Attachments in pageblocktable

I am looking to show the attached documents of custom objects record as a link in Pageblocktable. Please help needed in directing.
2
votes
1answer
129 views

Link to custom Visualforce page to upload an Attachment for the source record [closed]

I've created a Visualforce Page that enables me to upload files into our org as attachments based off Uploading a Document using Visualforce and a Custom Controller However, what I want it to do, is ...
1
vote
1answer
33 views

How to send attachment in a mail via workflow

Is it possible to send attachment using workflow.If yes let me know how shall it be implemented.
0
votes
2answers
65 views

Multiple attachments in singleemail class

I want to attach two (2) pdf files in a single email. Please find my below code which is doing attachment for only one of them. Can someone please help me here? Controller snippet: PageReference pdf ...
0
votes
0answers
34 views

Send all attachments in a record upon Submitting

Is it possible to somehow send an email which will contain all of the attachments which are in a record when a user kicks off the Approval Process ? I would like to have an Approver of a process ...
0
votes
1answer
27 views

Is there a way to identify if there is note or attachment already exists

I am trying to copy over notes from account into opportunities. I want to see if there is a same note or attachment already exists in opportunity. i want to copy them over only if the same note doesnt ...