How can I make a button to download SharePoint attachments?

%3CLINGO-SUB%20id%3D%22lingo-sub-2334933%22%20slang%3D%22ja-JP%22%3EHow%20can%20I%20make%20a%20button%20to%20download%20SharePoint%20attachments%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2334933%22%20slang%3D%22ja-JP%22%3EAbout%20SharePoint.%20%3CBR%20%2F%3E%20I'm%20currently%20using%20SharePoint%20Online's%20list%20feature%20to%20attach%20files%20and%20share%20them%20within%20my%20team.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20I%20want%20to%20count%20the%20number%20of%20downloaded%20attachments%2C%20but%20it%20seems%20that%20it%20is%20not%20a%20standard%20function.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20So%20I%20want%20to%20add%20a%20new%20column%20in%20the%20list%20using%20JSON%2C%20set%20up%20a%20DL%20button%2C%20and%20download%20the%20attached%20file%20and%20count%20the%20number%20of%20DLs%20at%20the%20same%20time%20when%20the%20DL%20button%20is%20pressed%2C%20but%20I%20don't%20know%20how%20to%20implement%20it.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20If%20you%20know%20any%20useful%20information%20or%20another%20implementation%20method%2C%20please%20let%20me%20know.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2334933%22%20slang%3D%22ja-JP%22%3E%3CLINGO-LABEL%3EDownload%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EJSON%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Lists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2337562%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20make%20a%20button%20to%20download%20SharePoint%20attachments%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2337562%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1047801%22%20target%3D%22_blank%22%3E%40Toi25%3C%2FA%3E%26nbsp%3Bthere's%20no%20customRowAction%20in%20JSON%20to%20download%20a%20document.%20I%20think%20the%20only%20thing%20you%20could%20do%20is%20to%20use%20the%20button%20to%20start%20a%20flow%20in%20Power%20Automate%20to%20email%20the%20attachment%20to%20the%20user%2C%20and%20the%20flow%20then%20increments%20a%20column%20in%20your%20list%20by%201.%20But%20it's%20not%20a%20very%20good%20workaround.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343923%22%20slang%3D%22ja-JP%22%3ERe%3A%20How%20can%20I%20make%20a%20button%20to%20download%20SharePoint%20attachments%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343923%22%20slang%3D%22ja-JP%22%3EI%20know%20how%20to%20download%20attachments%20with%20Powerautomate.%20However%2C%20in%20order%20to%20share%20the%20flow%20within%20the%20team%2C%20it%20is%20necessary%20to%20have%20a%20paid%20license%2C%20so%20I%20thought%20that%20it%20could%20be%20implemented%20in%20JSON.%20%3CBR%20%2F%3E%20Thanks.%3C%2FLINGO-BODY%3E
New Contributor
About SharePoint.
I'm currently using SharePoint Online's list feature to attach files and share them within my team.

I want to count the number of downloaded attachments, but it seems that it is not a standard function.

So I want to add a new column in the list using JSON, set up a DL button, and download the attached file and count the number of DLs at the same time when the DL button is pressed, but I don't know how to implement it.

If you know any useful information or another implementation method, please let me know.
2 Replies

@Toi25 there's no customRowAction in JSON to download a document. I think the only thing you could do is to use the button to start a flow in Power Automate to email the attachment to the user, and the flow then increments a column in your list by 1. But it's not a very good workaround.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

I know how to download attachments with Powerautomate. However, in order to share the flow within the team, it is necessary to have a paid license, so I thought that it could be implemented in JSON.
Thanks.