You need to sign in to do that
Don't have an account?
ExpertNOT
Apex to copy files from one record to another
I have a process where an email service (custom) cretes a CASE with attachments converted to files. I then using Visual Flow create a custom record Purchase_Order__c and fill out some fielsd. I would like to attach the FILES to the new Purchase_Order__c record with in the Visual Flow. Can someone point me on how to copy files from one record to another. I was thinking of calling APEX in the Visual flow. Thanks
It compiles OK but no Attachments from the Case are copied.
List<Case> cs = [Select Id, Purchase_Order__c from Case where Id IN:SourceID];
SourceId is a list so you have to use IN
Here is my test
can anyone help me