web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : nN6vYP92+06ShDQ7pTobZu
Power Apps - Building Power Apps
Unanswered

Power Apps custom form for document library - document set

Like (4) ShareShare
ReportReport
Posted on 14 Jan 2020 14:15:46 by 14

I have issue with custom form for document libraries on SharePoint. 

This problem appears when I have two content types enabled: "Document" and "Document Set". If I customize form with Power Apps and publish it, then each time when I want to create a new "Document Set" my custom form is opened but I'm not able create a new Document Set. First of all, Such content type is not visible in "content type" field. Secondly, when I try to save item (create a new one, I receive error: "The requested operation is invalid. Server Response: To add an item to a document library, use SPFileCollection.Add()..." 

 

  • VijaySingh Profile Picture
    8 on 08 Jun 2023 at 17:13:17
    Re: Power Apps custom form for document library - document set

    Not sure what is the issue. My library set as new my I am still able to see SharePoint default form. MY powerApps somehow not attaching to SharepOint.

     

    Any idea or suggestion.  

  • spalmstr Profile Picture
    10 on 22 Nov 2021 at 18:35:55
    Re: Power Apps custom form for document library - document set

    I've decided that Custom Forms don't really work for Document Libraries. For example, the Name field is a label, so can't be edited. It would be great if you could use a custom form to create a new document and update its metadata at the same time, but I don't think that is possible.

  • Bob365 Profile Picture
    15 on 15 Jul 2020 at 20:11:26
    Re: Power Apps custom form for document library - document set

    As everyone has said, there is no direct support for uploading files directly to a library in PowerApps.

     

    What I am doing is using a secondary list with a new form. The SharePoint list contains all the metadata you wish to gather plus the attachments is enabled. User attaches the file, completes the metadata entry then submits. I then have a flow that runs on that secondary list, pulls the attached file and metadata, saves that file and metadata to the library.

     

    This did require a separate form for new and edit. Edit form points directly to the document library and allows the users to edit the metadata. New for points to the temporary SharePoint list with attachments.

     

    Hope this helps!

    Bob Mixon

  • WarrenBelz Profile Picture
    148,896 Most Valuable Professional on 20 Apr 2020 at 21:04:06
    Re: Power Apps custom form for document library - document set

    Thanks @KFlaherty ,

    Yes, maybe we do not have the strict governance that is required by some processes. We actually rely on SharePoint Versioning for historical changes, with the user knowing what they are looking at is a single current document.

  • KFlaherty Profile Picture
    9 on 20 Apr 2020 at 14:23:01
    Re: Power Apps custom form for document library - document set

    @WarrenBelz Totally agreed that's simple and perfectly viable for many document libraries. I'll provide one use case to illustrate why Power Apps would help with Document Sets:

     

    We have a change process that many users can initiate and multiple files get added to each change through their lifecycle. To control, each change needs a friendly and unique ID, e.g. CM-127. Ideally, the user hits the "New Change" button in the library, adds some metadata, and a new Document Set pops into existence, containing a template file. However, the default form causes confusion:

    • The "Name" field isn't pre-populated, so users put in a throw-away name and a Power Automate Flow renames with our standard numbering scheme
    • Extra fields are on the "new" form because we want them in our default library view, but we don't expect the initator to fill in all the fields. We also can't add explanatory notes with higher visibility than the small, gray column descriptions
    • Once a new item is submitted, the user has to wait 15-45 seconds for the Flow to run, renaming the Doc Set and adding the template file, while they refresh the screen a few times.

    A Power App could make all of this much more seamless!

  • WarrenBelz Profile Picture
    148,896 Most Valuable Professional on 20 Apr 2020 at 10:58:17
    Re: Power Apps custom form for document library - document set

    Thanks @Spinner ,

    Wow - we manage thousands of documents and users just drag them into SharePoint first in a view sorted by Created Descending then click on the new item at the top and edit the metadata.

  • Spinner Profile Picture
    89 on 20 Apr 2020 at 09:29:16
    Re: Power Apps custom form for document library - document set

    @WarrenBelz 

    It's possible, as I've done for the moment, to set up a Power Apps flow to create a blank Document Set, and to launch that from the customised Power Apps form. It's a unwieldy, ugly workaround that breaks the standard user experience, as the user has to ignore the Save button (first image), then re-launch the form (second image) to edit the metadata after creating the Document Set.

     

    To create the Document Set:

    firefox_PYoJVsa5QS.png

    To set its metadata:

    firefox_VmmY2gX5fD.png

  • bw0jciech0wski Profile Picture
    14 on 20 Apr 2020 at 09:16:20
    Re: Power Apps custom form for document library - document set

    Hi @WarrenBelz ,

     

    no, for now nothing is changed, so I simply stopped using customized sharepoitn forms on libraries, where I also use a document set. 

  • WarrenBelz Profile Picture
    148,896 Most Valuable Professional on 20 Apr 2020 at 09:15:04
    Re: Power Apps custom form for document library - document set

    Thanks @Spinner ,

    You told me something I did not know - although I have never had any reason to look.

    As you have pointed out, it is not available in PowerApps.

     

  • Spinner Profile Picture
    89 on 20 Apr 2020 at 09:11:25
    Re: Power Apps custom form for document library - document set

    @WarrenBelz

    Thanks for the reply. However, the default SharePoint interface allows one to create an empty Document Set (New > Document Set), without uploading a file, with associated metadata. This facility should be made available in customised forms too, otherwise there is no direct way to add a Document Set.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete