Microsoft Flow Move SharePoint list attachment to doc library

%3CLINGO-SUB%20id%3D%22lingo-sub-288379%22%20slang%3D%22en-US%22%3EMicrosoft%20Flow%20Move%20SharePoint%20list%20attachment%20to%20doc%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-288379%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20move%20list%20attachment%20to%20document%20library%20when%20new%20list%20item%20is%20created%20or%20update.%20Have%20anyone%20done%20this%20before%3F%20I%20am%20getting%20502%20-%20Bad%20Gateway%20error%20while%20trying%20to%20move%20attachments%20using%20Move%20File%20action.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-288379%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-305350%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20Move%20SharePoint%20list%20attachment%20to%20doc%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-305350%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243485%22%20target%3D%22_blank%22%3E%40Nirav%20Patel%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EYou%20cannot%20use%20the%20Move%20File%20action%20in%20this%20scenario.%20The%20Move%20File%20action%20does%20exactly%20the%20same%20as%20the%20Move%20action%20in%20the%20ribbon%20of%20a%20SharePoint%20library%20or%20OneDrive%20for%20moving%20a%20file%20between%20these%20locations.%20This%20action%20does%20not%20work%20for%20list%20item%20attachments.%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20your%20scenario%20you%20can%20use%20the%20Create%20File%20action%20to%20create%20a%20new%20file%20with%20the%20contents%20of%20the%20list%20attachment.%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20trie%20the%20copy%20file%20action%2C%20but%20I%20think%20that%20will%20get%20the%20samen%20result%20as%20the%20move%20file%20action.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-304118%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20Move%20SharePoint%20list%20attachment%20to%20doc%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-304118%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20that%20I%20%22like%22%20this%2C%20just%20getting%20the%20same%20message!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to move list attachment to document library when new list item is created or update. Have anyone done this before? I am getting 502 - Bad Gateway error while trying to move attachments using Move File action.

2 Replies

Not that I "like" this, just getting the same message! 

Hi @Nirav Patel,

You cannot use the Move File action in this scenario. The Move File action does exactly the same as the Move action in the ribbon of a SharePoint library or OneDrive for moving a file between these locations. This action does not work for list item attachments. 

In your scenario you can use the Create File action to create a new file with the contents of the list attachment. 

You could trie the copy file action, but I think that will get the samen result as the move file action.