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
SUHSUH 

Automatic attachment file association upon creation of new record through quick action

Hello, newbie asking for support.

We have set up a system using the Email Service where a new record in a custom object called TempMail will be created once a mail is sent to the designated address. We have managed to automatically save the attachment file and associate it with the newly created record if there is any. 

Next, we have created a quick action where click of a button will create new Case record based on the TempMail record. The tricky part is here: how can we make it so that the attachment file associated to the TempMail record will also be automatically associated to the new Case record created through quick action?

Sum: Is there a way to automatically associate same file(s) to a new record, when the new record is created based off an original record that have associated files/? 

Hope the question is straightforward and easy to understand. 

Thanks in advance.