Select to view content in your preferred language

Copy attachments from one feature layer to another

542
1
Jump to solution
08-12-2022 11:18 AM
mikAMD
by
Frequent Contributor

I'm using the MergeLayers task to combine two point feature layers together. I got it working fine except it did not copy the attachments that both feature layers contain. This is described here, but I used the REST API, not ArcGIS Online.
Is there any way to copy/paste attachments from one feature layer to another (possibly with a match on the GlobalID) ?

I can always make a copy of the first layer, export the second as a FGDB and then append this to the copy, but it involves more step, so I wonder if there is a simpler solution to manage & move attachments between layers.

Thanks!

0 Kudos
1 Solution

Accepted Solutions
mikAMD
by
Frequent Contributor

Well I managed to copy attachments from one feature service to another as I posted here, although I have to download them as string, decode and upload again. A server side solution would be best but this works.

 

View solution in original post

0 Kudos
1 Reply
mikAMD
by
Frequent Contributor

Well I managed to copy attachments from one feature service to another as I posted here, although I have to download them as string, decode and upload again. A server side solution would be best but this works.

 

0 Kudos