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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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 (5,433)