Microsoft Flow – Get your flow to trigger on the creation of a Document Set

Today, I was asked about triggering a flow only when a document set is created.

I started by enabling Document sets on my site. (note that this is a site collection feature that you need to enable)

Then I created my flow that triggers on the creation or modification of a file. And I’m initialising a variable with the content type Id of the document set that was added:

Most of the hard work has now been done. I could now add a condition that checks for the Content type Id to start with 0x0120D520.

But this means that my flow will kick off and I would end it immediately. This is a waste of my number of flow runs. So I would pay for these flows to run even though I don’t want them to run.

It would be nice if triggers could handle filters like in the Get Files action where a Filter Query can be configured.




4 thoughts on “Microsoft Flow – Get your flow to trigger on the creation of a Document Set

  1. Thanks for this! Exactly what I’m doing at the moment. I wish we could ask it to only trigger on creation of this document set, instead of running every time and THEN checking if it’s a document set.. but.. we work with what we’ve got!

    Just wanted to comment, though, that it’s 0x012D520 not 0x0120520 as you have in your bolded text! Almost missed it. 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: