Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Reading data from csv file stored in salesforce files. Content size of 12mb

I have a requirement to upload the csv file of 12mb and read the content in it. Through Lightningfile upload component i am able to load the file in Salesofrce Files and here is the below link for ...
1
vote
0answers
20 views

How to get email attachments for classic users to come from Files rather than Classic Documents

When a user in the Salesforce Classic interface creates and email and wants to attach a file, Attachments from Classic users come from (Classic) Documents, Attachments from Lightning users come from ...
-2
votes
0answers
24 views

prevent deleting files for customer community [closed]

Why are the files in lightning community are not getting prevented from delete through the below code for customer community user ?Its a before delete trigger Trigger Network nw=[select id,name,...
1
vote
0answers
25 views

Customize the Size of Lightning-File-Upload

I would like to customize the size of the lightning-file-upload so that the 'dotted'/drag-n-drop area is larger. I don't see any documentation on changing that. Here is an example of what I am ...
0
votes
0answers
11 views

Migration of Attachments to Files [duplicate]

We are moving towards Salesforce Lightning. As in Lightning, Attchments need to be stored in Files. What is the best way to move those attachments to files? There are few appExchange in the community,...
0
votes
0answers
22 views

How to get image link from DistributionPublicUrl (outside Salesforce)?

I need to display pictures outside salesforce so Im generating DistributionPublicUrl from ContentDistribution but the 'DistributionPublicUrl' its a page with the picture but its not the picture. Cant ...
0
votes
2answers
30 views

How can I mark a contentDocument or ContentDocumentLink?

I made a lightning web component to set if a content document it is approve or reject but I cant create any field in this objects... There is a way to mark if a Content document was approve or reject ...
0
votes
1answer
25 views

How to delete Files via Developer Console

Is there an easy way to delete all files via Apex - developer console? Something like delete [select id from File];
0
votes
0answers
16 views

Is there a way to restrict file owner from deleting file out of the box. (In Professional Edition)

I have a requirement where , no one(not event owner of file) should be able to delete files attached to a object record out of the box. Cant write trigger as requirement is for professional addition....
0
votes
0answers
15 views

Sharing files externaly not working as expected

As severe topics advise, I am using contentdistribution to generate DistributionPublicUrl to share Files as images externaly. The problem is that the url generated have like a bar with the name of ...
0
votes
0answers
13 views

How to provide Guest Community User the access for a specific file in asset library?

I have created a page in community with 2 variations : public page and private page. I have stored 5 pdf's in a library folder and have given access to Community Public Group. In the private page I am ...
1
vote
1answer
33 views

How To Merge Concatenate Two PDF Files In Salesforce [closed]

I was wondering if there's a possibility to meet this requirement using any PDF tool (maybe Conga) in a Salesforce Org. I'm making a LWC that must merge or conc a group of PDF files related with a ...
1
vote
0answers
31 views

SFRestAPI.h in the Objective-C SDK appears to be missing methods

I'm building a Salesforce integration in an existing iOS app. As part of the integration workflow, I need to allow a user to upload a PDF to a specific opportunity. When the upload is complete, it ...
0
votes
2answers
44 views

How do I get the current APEX file name?

Is there something in APEX like __file__ (Python) or __FILE__ (PHP and C++)? Or even something like this in Java: String path = Test.class.getProtectionDomain().getCodeSource().getLocation().getPath()...
0
votes
0answers
9 views

Community User with Viewer on Library Can Upload and Delete Files

I have a bit of an issue with the permissions in a Library used in a Community. We have created a specific Library for exposing some files to one of our communities. Note we are on Spring '20 and ...
0
votes
0answers
46 views

want to query all ContentDocument without changing permission “Query All Files: Allows View All Data”

I want to run the following SOQL and want to get all the ContentDocument from all users. SELECT OwnerId, Title, FileType, LatestPublishedVersionId, ContentModifiedDate, CreatedDate FROM ...
0
votes
0answers
28 views

How to upload image to Salesforce from a native iOS app built using Salesforce Mobile SDK?

I want to upload an image to Salesforce database from my native iOS app built using Salesforce mobile sdk. I heard we should be making use of ContentDocument, ContentVersion & ContentDocumentLink ...
1
vote
0answers
31 views

External FTP File Transfer Activity Error in Automation Studio - Can't Change

I'm trying to gather the errored emails in a triggered send. My question is the same as this one: Triggered Send Errors - access subscribers for failed send? However, when I attempt pull the errors, ...
0
votes
0answers
14 views

Changed ContentDocument Owner via Dataloader, but is not being reflected in File List

I was asked to change the file's Owner, I did it via Dataloader app, the issue is that it still showing the old user as Owner. But the actual owner of the file is correct. I even deleted the sharing ...
1
vote
1answer
66 views

Where is a File's “Customer Access” status located?

Background (This question is a more specified version of ytiq's question File "Customer Access" Permissions) Salesforce Lightning now requires that a file have the "Customer Access" toggle set to "...
1
vote
0answers
17 views

Why a share option is not available for a file?

After going through this help article "Share Files with People in Lightning Experience", I wanted to share a file with other users in my org. It appeared that there was not a Share option in the ...
0
votes
0answers
21 views

Files from a connected source (Google Drive) do not show up in Community

We set up Files Connect for Google Drive in our org. Internal Users when logged in community can see files in Connected Sources: Community Users (License: Customer Community Plus) get an error when ...
0
votes
0answers
12 views

How to create a file from mobile sdk?

I've got a mobile app using the Salesforce Mobile SDK and I want to upload a large ~10mb JSON file. I'm trying to use sendRequest on endpoint: /services/data/sobjects/ContentVersion in order to ...
2
votes
0answers
20 views

Email sent when inserting ContentDocumentLink record

I have noticed that when using Apex to programmatically insert a list of ContentDocumentLink records that the users specified in the LinkedEntityId are receiving an email notifying them that the ...
0
votes
1answer
34 views

File drop Automation _ Exception mechanism

I am trying to get a solution for a unique exception case of File drop automation. The scenario is, a file(with wrong data) is dropped into FTP, overwrites a Data extension and waits for 2 hours and ...
0
votes
0answers
10 views

Not able to see and modify Contentversion or File details like title and Description

I'm facing a very strange issue, i have two orgs, in one of the salesforce org everything is working fine which is a Dev org. another one is scratch org. in the scratch org when I upload the file the ...
0
votes
0answers
20 views

Show button on related list tab in Lightning Page Layout instead of dropdown arrow

I've created the Files related list on my Lighting page layout, but instead of the Add Files button, it displays the dropdown arrow. Is there any way I can get it to show the button as it does in the ...
0
votes
1answer
196 views

Download file in lwc

I'm receiving a link to a file once the component is loaded, and i want to download it. html <template> <lightning-card> <div class="slds-align_absolute-center" style="...
0
votes
1answer
22 views

Validation rule on File Sharing button

I am trying to add a validation rule on File Sharing button through an Apex trigger. The trigger is working fine when a user is trying to share the file with any other User. But it is also stopping ...
2
votes
1answer
23 views

Is there any way to remove the option "Customer Access” from UI while sharing file attached to a record?

We don’t have either community or chatter enabled in our Org, but still seeing this option which will be misleading for the Users. I looked at salesforce help page but no luck so far! Appreciate ...
1
vote
1answer
68 views

Uploading File against Lead via REST API

I am trying to Upload the File against Lead via REST API. My understanding is that I need to use ContentDocument and then create Content Document Link against that Lead. However, I am unable to ...
0
votes
1answer
66 views

Any way to Query for LinkedEntityId from ContentVersion

Wondering if there is anyway to query for LinkedEntityId from ContentVersion? As i understand, ContentVersion looks up to ContentDocument which then looks up to ContentDocumentLink (could be wrong ...
0
votes
2answers
42 views

Exclude Subscribers from a CSV file in Marketing Cloud

I have a CSV file containing duplicates contacts. We would like to identify those duplicates in our DE to exclude them in an email send. Do you know any solution for this issue? Thanks, Grégoire
0
votes
0answers
12 views

Customize “File List” Community component to remove tabs like “Shared with me” and “Recent”

I have a requirement to allow community users to upload files to specific Salesforce Libraries, which I am currently satisfying using the "File List" community component. However, I only need users to ...
1
vote
1answer
164 views

How to preview the file attached in the ContentVersion

We have a requirement to preview the related file in the lwc component. Something which is similar to a modal dialog which displays the file if it is a known format to the browser (like pdf or jpg). ...
2
votes
2answers
27 views

Copy Attachment to File Issue

On lightning, I changed the File Settings and checked on this feature: “Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments” In my code, ...
0
votes
1answer
31 views

Salesforce Files Settings - Expected Behavior?

We were looking to migrate to Files as a first step to prep for a Lightning migration and noticed a potential useful setting: "Files uploaded to the Attachments related list on records are uploaded ...
3
votes
1answer
152 views

Is it possible to upload files as a guest user in a community?

Is it possible to upload files as a guest user in a community? I am using a lightning web component lighting-file-upload component with a case's id as the recordId. The file upload works for ...
1
vote
0answers
26 views

File “Customer Access” Permissions

In Winter'20 there was added feature to allow "Customer Access" for files. Some of the users need to have access to it. Maybe someone knows or played with that? For the target user, this is just ...
1
vote
0answers
32 views

Restricting Salesforce Files to always be in a ContentWorkspace

Ive tried to figure out how to always require uploaded files to belong to a Library(ContentWorkspace) in Salesforce Files, since the UI/Navigation is not good at all. After some backtracking SOQL ...
0
votes
0answers
18 views

Salesforce Administrator without files access

I have a unique scenario where there would be a user who should have admin permissions in an org but should not have access to files and attachments on records. Any way this could be achieved? Bonus ...
0
votes
2answers
33 views

SQOL Query AND Title is failed to pull records

I am using Conga and I am trying to pull files that contain SPE in their tile This query will find the file records successfully SELECT ContentDocument.id FROM ContentDocumentLink WHERE ...
2
votes
1answer
48 views

Is it possible to customize the error message that appears when the user is unable to upload a file?

I'm trying to make a trigger that prevents the user from uploading a file that is larger than 100mb. I'm doing this by checking the file size in the ContentVersion trigger and using addError. However,...
1
vote
2answers
113 views

Converting attachment to files, heap size exceed exception

I am trying to convert our existing attachments to contentVersions using batch. But problem I am facing is that some of the attachments are of size greater than 12Mb. So when I try to run my batch I ...
1
vote
0answers
41 views

Search in Salesforce Files Preview

When opening a document (pdf, doc, ppt, xlsx, etcetera) that has been uploaded to Files in Salesforce; it is not possible to search within the document. When pressing CTRL+F in the overlay preview, ...
0
votes
0answers
50 views

How do I customize the zip file name when downloading multiple files?

I know how to download a single file from salesforce. I just open a new tab with the url /sfc/servlet.shepherd/version/download/068xxxxxxxxxxxxxxx/. Likewise, I know how to download multiple files ...
0
votes
1answer
32 views

How to make files Archived using apex ? (isArchived = true)

I am in one of the requirements where I need to set IsArchived = true when user uploading any files using Upload files option. I thought apex trigger will work here but it doesn't trigger ...
0
votes
0answers
129 views

Visualforce page rendered as PDF saving to salesforce files (Content document) but failed to reload error on opening pdf

Rendering VF page as PDF. Attachment pdf is working fine in classic. On opening pdf in classic view PDF is correctly opening but when i switch to lightning then on click of button pdf is saved in ...
0
votes
0answers
24 views

failed to save: asset file cannot be found in namespace

I'm trying to use the $ContentAsset value provider, and have successfully done so in one Sandbox using zip files. When I attempt to duplicate it in another sandbox, however, I get this error: Failed ...
0
votes
2answers
63 views

Upload a file via Apex

How can i upload a file from my client PC via Apex ? I need it for a test class so i cannot make api callout. I try this but without success String yourFiles = 'Lets assume this is your binary string ...

1
2 3 4 5
7