7

Realistically, you're not going to be able to do this, for a variety of reasons: Heap Limits The only context that can even store 20 MB of data in RAM is Email Services. That means you'd have to kick off an email to Salesforce just to get your code to have enough memory to load your file in memory, much less have a chance of doing anything. Batch Apex, ...


7

As per Salesforce docs: File storage includes files in attachments, Files home, Salesforce CRM Content, Chatter files (including user photos), the Documents tab, the custom File field on Knowledge articles, and Site.com assets So you might need to update All records where the old user is owner so you can update related Attachment owner as well. ...


5

Here is the explanation from the Salesforce document For file storage, Contact Manager, Group, Professional, Enterprise, Performance, and Unlimited Editions are allocated a per-user limit multiplied by the number of users in the organization plus an additional per-organization allocation. For example, a Professional Edition organization with 10 ...


5

The 'File Size Limits in Salesforce' help topic indicates that the following support 2GB. Files Tab and Chatter Salesforce CRM Content Feed Attachments That said, getting this size of data file in programatically reduces this to 10MB for Visualforce / Apex. Apex is going to be the limiting factor, especially with its heap size limits 6/12MB (...


4

You can't link multiple attachments, but you can link a single Chatter File to multiple objects via the Chatter Sharing model, and the Chatter Attachments will appear in the Attachment Related List


3

Help docs seem to answer all your questions: The maximum size of an image that can be uploaded in a rich text area field is 1 MB. Only .gif, .jpg, and .png file types are supported. https://help.salesforce.com/HTViewHelpDoc?id=fields_using_rich_text_area.htm Images within the rich text area fields count towards file storage for the object that ...


3

You can just change your outer loop to include a subquery for all the attachments, like so: for (Contact c : [SELECT Id, (SELECT Id, Name, CreatedDate, ContentType FROM Attachments WHERE ContentType = 'application/pdf' ORDER BY CreatedDate DESC) FROM Contact WHERE Id = '0032500000M1uXO']) { for (Attachment a : c.Attachments) { //do logic } } ...


3

You can try it in batch global class ExampleBatchClass implements Database.Batchable<sObject>{ global ExampleBatchClass(){ // Batch Constructor } // Start Method global Database.QueryLocator start(Database.BatchableContext BC){ return Database.getQueryLocator('SELECT ID FROM Contact); } // Execute Logic ...


3

According to the Salesforce help document for Libraries, Content and Files, yes. If your administrator enables document content search, Salesforce also performs a full-text search of the document. When a new document is uploaded or an old one is replaced, its contents are available for searches. The help document notes which file types are able to be ...


3

I have used the class below that creates a named Document in the "My Personal Documents" folder. You can call it like this: Logger logger = new Logger(); try { logger.info('...'); ... logger.error('...'); } finally { logger.flush('Log-' + System.currentTimeMillis()); } But a fundamental problem is that if the transaction is rolled back (e.g....


3

ContentVersion works very different from Attachment Object. When you have a trigger on it for before insert, You will get these value in trigger.new:- ContentVersion:{Id=null, ContentDocumentId=null, IsLatest=false, ContentUrl=null, ContentBodyId=05TB000000AUAAuMAP, VersionNumber=null, Title=Capture, Description=null, ReasonForChange=null, SharingOption=A,...


3

You will need to have the input from the form accept files and then use javascript to create a Base64 string of this file. From there you POST this string to your processing page (I usually do self post) and then use the SFMC Content Builder API to create this asset inside your Content Builder instance. You would also need to have a list of the Asset Ids ...


3

The answer to all your questions is yes: you can store pdfs or other files either in Content Builder or in your sFTP you can use AMPscript to attach the files to your emails you can use AMPscript to dynamically match subscriber data with files and to create conditional statements you can match a file based on a filename, customer key, etc. Some examples ...


2

There is no way to attach a single Note or Attachment to multiple records. The ParentId field is the field which specifies what record the Note or Attachment is attached to.


2

I assume my question was not very accurate. The problem was that we use custom REST API. And the problem was in Heap Size in our code. After I tried 'standard' Force.com REST API for Attachment object I was able to upload 24 MB file to my custom object.


2

With Summer '14 release, file size limits for attachments were increased to 25MB, so you should be fine: http://docs.releasenotes.salesforce.com/en-gb/summer14/release-notes/rn_general_attachment_size_increase.htm


2

I found the solution: I had ".../default.aspx" in the Site URL for the External Data Source. It seems that this is not allowed, removed that and tried again and now evrything works fine.


2

Now that I know you don't have any email service integrations, what you'd want to do is create an inbound email service to use for a "reply to" email address with your "outbound emails" which could send either through normal Salesforce emails (I think you can use a different reply to, but would need to check) or with the service that you've configured. When ...


2

Yes, we can configure an FTP Location which is outside Marketing Cloud FTP y following below steps. Go to Administration Navigate to Data Admnistration > File Location Click Create Select Location Type as "External FTP Site" Enter external FTP details Click Save Screenshot below:


2

Extending the comments, and adding some more information. As for your questions: Is 200 MB data storage limit for scratch orgs? Yes. That's the limit for data for Scratch Orgs. Scratch orgs have these storage limits: 200 MB for data 50 MB for files Then for: Is it possible to increase it? I need 2 GB to fully test our app I am not aware that you can ...


2

Files are a "successor" to Attachments and bodies of Files are searchable. You can also take a look at this comparison of different options for managing content on SF platform.


1

Files are essentially data records and thus cannot be deployed using change sets or the ant deployment tool. You will need to use data export / import methods to copy your files from one org to another.


1

You will need a Tooling API callout. You have 2 options, depending on how you want to store credentials. "Push data": In source org (the one which storage you want to see) make the REST callout to get the data, then use some other technique (another callout? Outbound Message? Salesforce-to-Salesforce?) to post this data to target org. You don't need ...


1

I hope you mean attachments and documents which you need to access in community portal. If that is the case you can use it. You can also use Articles. It works. Hope I answered your question.


1

You need to search for those articles which is not latest version based on article ids. Refer KnowledgeArticleVersion Use this object to: Query or search generically across multiple article types. Filter on a specific version. Update standard fields, those fields that are updateable, in draft versions. SOQL query SELECT Title, IsLatestVersion, ...


1

for (Contact c : [SELECT Id FROM Contact WHERE Id = '0032500000M1uXO']) { for (Attachment a : [SELECT Id, Name, CreatedDate, ContentType FROM Attachment WHERE ParentId = :c.Id And ContentType = 'application/pdf' ORDER BY CreatedDate DESC]) { attachmentList.add(a); } for (Attachment a : attachmentList) { if (a.Name.startsWithIgnoreCase('Resume')...


1

For the salesforce side: you need to add the related list of notes and attachemets on the template layout. For the external side: I do the same as Amr, I use Amazon sdk JS. Below a generic instructions and below this generic instructions I added more details. On security credential I add a new user. When creating this save the access key and secret key. ...


1

You should be able to access via apex SOQL. If you go to your schema builder or workbench you will find an external object created with __x .You can run SOQL on these and show on Visualforce Page . Please also note some of the considerations https://help.salesforce.com/apex/HTViewHelpDoc?id=platform_connect_considerations_soql.htm&language=en_US


1

post.setEntity(new ByteArrayEntity(IOUtils.toByteArray(new FileInputStream(fileEntry)))); // Binary is different from req.setBodyAsBlob(bodyBlob); // Blob both are different data types. So, it is expected that code won't work. Even if you send the blob converting to Base64 it would not work becasue expected body type is different. One of the solutions ...


1

Dana, in native Salesforce I think regardless of where you actually store the file, you must have a known naming convention for the logo file. The reason is that you have no way of making a relational link (i.e., Lookup or Master-Detail field) directly from the company's record to the logo file. To standardize a naming convention, one tip may be to create a ...


Only top voted, non community-wiki answers of a minimum length are eligible