Questions tagged [attachment]
A standard Salesforce object representing file attachments related to another standard or custom object.
191
questions with no upvoted or accepted answers
0
votes
0
answers
59
views
checking if an attachment already exist given custom object
I am using python code with the SalesforceBulkpy API to upload an image to a custom object.
I want to make sure I only upload the image once so I thought on adding a check if an image exists before ...
0
votes
1
answer
52
views
How do I change the default on opportunity Notes and Attachments to be NOT private?
opportunity notes and attachments are always set to private by default but Users wanted it be made public by default.
0
votes
0
answers
157
views
Attachment related list on custom vf page while creating task
I have created a vf page and have override the New Task button the problem is that on my vf page I am not getting the Attachment Related List as it is coming in standard page.
Is there any tag for ...
0
votes
1
answer
481
views
getcontent() method not working, while generating the CSV file , no data (content) exit in csv
I'm trying to create a csv file attached to a visualforce email template.
When i comment "strOut = new PageReference(requestURL).getContent().toString();
"
then it generate a CSV file with no data.
...
0
votes
0
answers
664
views
How to attach multiple files in a visualforce page like as in gmail
Attach file button should have the capability adding multiple files at a time and deleting one among the uploaded files. Just like we have this in gmail.
Right now, I have ability to upload a single ...
0
votes
1
answer
265
views
How to send the Case attachment in an alert email using VF Email Template?
I want to send the Case attachment in an email to Risk & Legal team when Manager approves the request. For this I have created the VF Email Template (Because in Email Template I have header, ...
0
votes
1
answer
7
views
Unable to attach call logs for opportunity with out ownership access
Hi friends in my organisation org-wide defaults for opportunity is Private.
But some users have acess view all opportunities,read access and create access.
But if they want to attach calls they need ...
0
votes
0
answers
3k
views
Get ContentDocument Id and ContentVersion Id of an attachment
I have to retrieve all the attachments of a custom object (of all records) and list them out with thumbnail and preview option.
For the preview option, I need the ContentDocument id and for the ...
0
votes
0
answers
169
views
Attachment VF page
I am putting together VF page to render attachments, it will reside in service console so I was trying to get styling roughly aligned with other related list components. However when I set the ...
0
votes
0
answers
57
views
VF email template with attachment not sending attachment
I created a VisualForce email template that includes building up an attachment. If I test it from the template it all works nicely and includes the attachment when sending the email. I followed ...
0
votes
1
answer
59
views
Not able to store Product and It's Attachment using visualforce page
Here, i am going to build a visualforce page to add Product and attach photo of that product in attachment but i am not sure why it's not working..
Please have a look into my code and suggest !!
...
0
votes
1
answer
20
views
bulkification issue for insert operation of attachment
I am getting bulkification issue on "insert at".Not able to understand why there is bulkification issue.Below is my code.
public static Attachment addAttach(Attachment at) {
try {
...
0
votes
1
answer
543
views
Decode Body from Attachment Object
I'm trying to decode the body field of the Attachment Object in salesforce doing this:
String bodyContent = documento.Body.toString();
Blob bodyDocumentoBlob = EncodingUtil.base64Decode(bodyContent);
...
0
votes
1
answer
176
views
How to stop downloading of CSV After calling controller class method
I am creating a CSV. but on click its simultaneously downloading for current user and also adding in Notes & attachment. But I don't want it to download for user. It should jut add to Notes & ...
0
votes
0
answers
86
views
How to handle different types of attachments
I have a requirement that a client would like to store financial related documents and other types of documents as attachments in a record. They want to be able to be able to tell the difference ...
0
votes
0
answers
109
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.
...
0
votes
1
answer
41
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 ...
0
votes
1
answer
382
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> ...
0
votes
0
answers
61
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 ...
0
votes
2
answers
382
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
0
answers
104
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
1
answer
111
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 ...
0
votes
0
answers
906
views
How to attach file using Rest api Java?
Can some budyy help me out. How to upload attachment using Rest
REST API Attachment
I am following this link.
Is there any sample code available?
Any help appreciated.
0
votes
0
answers
55
views
Visualforce Attachment with email on trigger fire
I have a trigger which fires an email on my custom object.
I want a visualforce page as a attachment to that email.
I tried but it is not working.
Please help me out.
Here is my trigger.
trigger ...
0
votes
1
answer
244
views
Cant see attachments attached to emails
We have email-to-case set up and some emails contain attachments. Salesforce labels what emails have attachments, but they do not give us the option to view the attachments.
How can we view these ...
0
votes
0
answers
76
views
Getting the email message in the form it was written(in english,not binary or any other encoding tech) in apex
I am writing a trigger on attachment where I need to check whether the value of a field of the parent custom object is contained in the email subject line of the email added as an attachment ...
0
votes
3
answers
444
views
Move Attachement from Task to Lead/Account Parent Id
i am using email to salesforce, here, whenever an customer is sending email to a specific email it will be automatically forwarded to email to salesforce email. Then the email will be added as a Task ...
0
votes
1
answer
1k
views
CombinedAttachments Table subquery is not returning any result in Test class
In below test class method, the subquery is not returning any result even after inserting the attachment.
Test CLass :
@isTest
private class AttachmentRelatedListController_Test {
...
0
votes
0
answers
748
views
Corrupted file error after creating Attachment from data(attachment) from Other SalesForce Instance through Rest Api
We are facing issue when we create Attachment record in Apex, using the data that we get from Rest Api from another instance. Tried with Blob.ValueOf(responsebody), EncodingUtil.base64decode(...
0
votes
1
answer
121
views
Attachment in Salesforce
Having an attachment code
<apex:pageBlockSection showHeader="false" columns="2" id="block1">
<apex:pageBlockSectionItem >
<apex:outputLabel value="...
0
votes
1
answer
226
views
Best way to migrate binary attachments from one org to another
Currently I am using apex data loader with bulk api enabled and batch size =1 .
But its giving me failed to create batch when i try to import 1000 files with each size around 100kb.
I need to ...
0
votes
0
answers
205
views
Attach a dynamic PDF page
I have a requirement to create a pdf page in a new window based on dynamicly created records of custom object Incident__c when an User clicks a custom button. Then mail the PDF to the User. Please ...
0
votes
0
answers
2k
views
Export an attachment from sfdc to SFTP server
We have a requirement to keep the attachment(like pdf,doc,etc) in salesforce and also in a SFTP server.
Just assume, we are uploading a file to salesforce and clicking on a save button....now that ...
0
votes
0
answers
68
views
Attachment isn't loaded from customer portal
I have URL link to download attachment. Downloading gives out a error from customer portal.
How to correct it?
<a href="/servlet/servlet.FileDownload?file={!a.id}" download="{!a.name}">{!a.name}...
0
votes
0
answers
829
views
Uploading "Media File" binary content via the Apex Data Loader
I have a SalesForce Entity that I'm trying to upload via the Data Loader.
So far we've been able to successfully upload all the "meta data" on the object but have been unsuccessful in actually ...
0
votes
0
answers
827
views
How can I copy attachments from Opportunity object into Contract object?
I have created a trigger that converts opportunities with stage equal to Closed/Won into a new Contract object. In this process, the trigger copies some information from the opportunity into the new ...
0
votes
1
answer
2k
views
Adding attachment to case using Apex and VF reRendering issue?
I am having problem while adding the attachment to case using apex from site. User will enter their details,they will select the PO and PO line item. After that we need to select the file for ...
-1
votes
0
answers
34
views
Logged in Experience User unable to upload a file to an answer
I have a User who is logged in to our Experience community site under a custom profile with the "Customer Community Plus Login" user license.
Said user is trying to post an answer to our ...
-1
votes
1
answer
267
views
I am downloading the attachments via REST API in postman. I am getting response as below but I would like know which format it is?
We are providing service to a external system, they need to convert the response to a .xlsx file. They are asking about the format.can any one help me in this?[
-1
votes
1
answer
1k
views
Need to upload multiple attachements VisualForce Page
I have a requirement to upload multiple attachment in Visual Force page.
When i click on the attachment button i should be asked for how many attachment and then system show show the correct number ...
-2
votes
1
answer
879
views
Require Image in Rich Text Field, and add it to the attachments field
I need to add an Attachment (image) to a custom record, and i would like this to happen on record creation. I was thinking of having a rich text field that is required on record creation, where a user ...