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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get properties from a ...
Power Automate
Unanswered

Get properties from a document set

(0) ShareShare
ReportReport
Posted on by 87

I need to get properties from a document set and add it to a document every time a document is created within. Any suggestions? Best R, Thomas

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @sega2,


    In the past this was possible by simply enable the shared columns on the document content type settings. Have you tried that? Don't know if that feature still works with the modern document sets though.

     

    sharedcolumns_setting.png

  • sega2 Profile Picture
    87 on at

    Thanks, that still work. However the problem is that if you choose shared they will inherit from the document set, and you cannot following change the values on the document to something else. We need to default get the value from the document set, and then if needed change the value to something else on the document it self.

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @sega2,

     

    In that case you can probably first check if the parent folder is an item of type document set. You can check if the contenttypeid begins with 0x0120D520 (that is the id of the base Document Set content type).

     

    If it is a document set you could retrieve its existing values and reuse it in update file properties action.

     

    Below is an example of that approach.

    This sample assumes that all document sets are created in the root of the library.

     

     

    _api/web/lists/getbytitle('DocumentSetsExample')/Items?$filter=Title eq '@{split(triggerOutputs()?['body/{Path}'], '/')[1]}' and startswith(ContentTypeId, '0x0120D520')

     

     

    documentset_updatefileproperties.png

  • sega2 Profile Picture
    87 on at

    Perfect! Thanks a lot highly appreciated.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard