function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pradeep Satpute 8Pradeep Satpute 8 

Convert attachment to file

Hi,
i have one custom object Documentesl in this objects attchment some document stored.I want to convert this attachment into file and upload in opportunity files.How i can do this using flow.
VinayVinay (Salesforce Developers) 
Hi Pradeep,

Check below examples to convert attachments to file in salesforce.

https://agarciaodeian.com/2018/07/02/from-attachment-to-file-via-flow/
https://unofficialsf.com/new-flow-action-convert-files-to-attachments/

Please mark as Best Answer if above information was helpful.

Thanks,
macie jewsonmacie jewson
Converting attachments to files involves a systematic process to ensure data integrity and accessibility. Begin by identifying the attachments you wish to convert, confirming that they comply with the supported file formats. Utilize Salesforce's Data Import Wizard or Data Loader tools to perform a bulk conversion, mapping the relevant fields and maintaining relationships as needed. Pay careful attention to file permissions to ensure appropriate access for users. Similar to transforming attachments for enhanced usability, obtaining a free SEO evaluation (https://serpwaves.com/free-seo-analysis/) for your website involves a comprehensive analysis of its current performance, identifying opportunities for improvement, and tailoring strategies to boost search engine visibility. Both processes demand a strategic approach, meticulous execution, and the adept utilization of tools to achieve optimal outcomes.