cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
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

2 REPLIES 2
JimmyWork
Power Participant
Power Participant

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.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,967)