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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (5,855)