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
Shrijan ShresthaShrijan Shrestha 

How do I upload/attach files through PB/Flow/Apex. I need to attach files as soon as the record is created. Those files exists in library.

How do I upload/attach files through PB/Flow/Apex. I need to attach files as soon as the record is created. Those files exists in library. 
ShirishaShirisha (Salesforce Developers) 
Hi Shrijan,

Greetings!

You can use the file upload component to upload fiels once you create the record to attach the file.Please refer the sample flow as you can only upload the file using Flow,Apex and not with the Process builder.

https://automationchampion.com/tag/upload-file-from-flow/

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri