cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Power Participant
Power Participant

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
Highlighted
Power Participant
Power Participant

Re: Check when content type is available

2 REPLIES 2
Highlighted
Power Participant
Power Participant

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.

Highlighted
Power Participant
Power Participant

Re: Check when content type is available

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (11,831)