-
Goal: I have a URL where a SharePoint Excel file exists. I am trying to download that file with the click of the link component.
-
Steps:
• I tried downloading an Excel file using a javascript query, in which I am creating a new anchor tag() adding the URL to the href attribute of the anchor tag, and then triggering the anchor tag's download event.
• Another step I tried is using the "Fetch" function of javascript, i am making an API call to the URL where the Excel file exists and trying to create an object from the response, but that didn't work.
So, this is the scenario in which I am stuck right now, I am trying to download the Excel file from the SharePoint URL which is not happening, Thanks for helping.