Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Hi, You can try File ZIPO, a native appexchange application that can help you to Add Multiple Salesforce files & attachments of any size or volume from External Cloud to Salesforce directly.
Below is the sample code you can change according to your requirements.
Controller
--------------
Visualforce
----------------
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
All Answers
Below is the sample code you can change according to your requirements.
Controller
--------------
Visualforce
----------------
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
public void saveAttachment(){
String encodedContentsString = System.currentPageReference().getParameters().get('fileContents');
Id accountId = System.currentPageReference().getParameters().get('accountId');
Attachment attachment = new Attachment();
attachment.Body = Blob.valueOf(encodedContentsString);
attachment.Name = String.valueOf('test.txt');
attachment.ParentId = accountId; insert attachment;
}
i hope helpful for u?
You can try File ZIPO, a native appexchange application that can help you to Add Multiple Salesforce files & attachments of any size or volume from External Cloud to Salesforce directly.
For more info follow the given link - https://filezipo.io/add-files/