Forum Discussion

user_sharept's avatar
user_sharept
Brass Contributor
May 08, 2020
Solved

any solution for requiring a user to first answer some questions before downloading a document ?

  hi,   I am hoping to get some help in this forum. Use case: --------- I have some documents in a sharepoint document library. 1. When my users click to download the file, I want them to firs...
  • RobElliott's avatar
    May 09, 2020

    user_sharept  as Andrew Hodges  has said, this cannot be done out of the box with SharePoint. I don't think the Forms approach will work as there is no way for forms to know which document to give you the link to. But a Power Apps solution is certainly do-able. For your data sources you would have the documents library, a separate list to hold the details of who downloaded it and the reason, and an Office 365 Users data source so the app knows who they are - I'm assuming that the users downloading the document are inside your organization.

     

    The user wouldn't need to enter their name as the app knows who they are. But after they enter the customer and the reason for the download the gallery would appear (via the visible property on the gallery) with the list of documents and a download link for each one. When they click the download link the details of their request are saved to the separate list and the document opens in the new tab in the browser for them to download.

     

    You could make it more intelligent for example by filtering the documents that only relate to a specific customer. 

     

    The Power App could be embedded in a SharePoint page with the Power Apps web part so the user is not able to do anything else in the library (like delete the document!).

     

    A very simple example (without the filter) is attached.

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

Resources