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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps custom form...
Power Apps
Unanswered

Power Apps custom form for document library - document set

(4) ShareShare
ReportReport
Posted on 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()..." 

 

PA_02.jpg
PA_01.jpg
Categories:
I have the same question (1)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @bw0jciech0wski ,

    Do you want to use the PowerApps app custom form to upload file into your SP Library?

     

    Based on the needs that you mentioned, I afraid that there is no way to achieve your needs. Currently, within PowerApps, there is no direct way to upload file from PowerApps app to SP Library.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

    Note: You could only edit the Content Type of an existing file through the PowerApps custom form, you could not add a new record and specify proper Content Type, then upload file to SP Library.

     

    Best regards,

  • bw0jciech0wski Profile Picture
    14 on at

    No. Please read once again my post. I'm writing about creating new Document Set on libraries, where we have a custom form (customized with Power Apps).

  • KFlaherty Profile Picture
    9 on at
    Hoping anyone has ideas here, I'm having the exact same issue: error creating a document set (no file attachments involved).

    I get another error when trying to change back to the default SharePoint form, my only option is to *delete* the PowerApp linked to that library. This is obviously quite annoying when I've spent a good deal of time working on the form.
  • Spinner Profile Picture
    107 on at

    Same issue. Using the custom form to save edits to a Document Set works, but using it to create a new item does not.

  • WarrenBelz Profile Picture
    155,489 Most Valuable Professional on at

    @Spinner  @bw0jciech0wski  @KFlaherty 

    The reason is that to create a Library item, you have to upload a file first (that is why it is a Library, not a List).

    There are obviously controls built into the SharePoint interface to do this including "drag and drop".

    The PowerApps menu is then designed to add or edit any associated metadata.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

     

  • WarrenBelz Profile Picture
    155,489 Most Valuable Professional on at

    Hi @bw0jciech0wski ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Spinner Profile Picture
    107 on at

    @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.

  • WarrenBelz Profile Picture
    155,489 Most Valuable Professional on at

    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.

     

  • bw0jciech0wski Profile Picture
    14 on at

    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. 

  • Spinner Profile Picture
    107 on at

    @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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard