cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
Level 8

Check when content type is available

Hi im trying to solve an issue i have.

 

When my flow creates a Team it creates a SharePoint site.
I then want to add a custom library to the SharePoint site. This library have content types from the content hub.

If my flow tries to apply the custom library to the site before the content types  have been provisioned to the site, it will fail.

 

Currently i just put a long delay in flow. But i never know when the content type timer runs so i would like flow to keep checking if my content type have been provisioned on the new site, and then apply the custom library only when the content types are available.

1 ACCEPTED SOLUTION

Accepted Solutions
JimmyWork
Level 8

Re: Check when content type is available

2 REPLIES 2
JimmyWork
Level 8

Re: Check when content type is available

So it seems that i can use Graph to pull out a list of available content types.

 

https://graph.microsoft.com/v1.0/sites/site id/contentTypes

 

I can then check every 4 h if the custom content type is in the list if it's not in the list it goes back wait another 4 h and checks again.

If anyone have any inputs on how to achieve this the best way please let me know.

JimmyWork
Level 8

Re: Check when content type is available

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,850)