cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kbpartha24
Level: Powered On

Move data along with attachments from Custom Entity to Other Entity

Hello

 

I want to move data along with attachments from one entity to other entity. Using Patch I am able to move data , but cannot find how to copy the attachments.

 

Can somebody suggest how o move attachments from one entity to other entity whose fields are different

 

Thanks And With Regards

Partha

1 REPLY 1
Community Support Team
Community Support Team

Re: Move data along with attachments from Custom Entity to Other Entity

Hi @kbpartha24 ,

 

Sorry but so far it is not available to use Patch to add the attachments from one entity to another. Usually, when using Patch to add attachment, there is one workaround that is to use the an edit form to only have the attachment data card, and use "EditForm1.Updates" in Patch function to achieve this. Formula would be something like:

Patch(
   'xxx',
    Defaults('xxx'),
    {
      Column1:TextInput1.Text,
      Column2:TextInput2.Text,
      Column3:TextInput3.Text,
      ...,
      ColumnN:TextInputN.Text
    },
    EditForm1.Updates
)

But this requires that the EditForm1 has the same data source as the one you patch to. Since you are trying to move the attachment from one data source to another, this cannot achieve what you need.

 

Please consider to add an idea if you need this feature:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.