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.

 

 

Advertisements


Categories:Flow, Office 365

Tags: , ,

4 replies

  1. do you know if it possible to get the properties from the document set?

    Like

  2. 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. 🙂

    Like

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: