I have Flow that is initiated by user via a "When a HTTP request is received" request.
The flow creates a MS365 Group using an HTTP request, which in turn creates a SharePoint Site.
The flow then creates Document libraries and copies files and folders.
I have temporarily put a delay event into the flow between the creation of the MS365 Group and the subsequent processes to allow the site to be provisioned sufficiently.
I need to replace the arbitrary delay with a check to if the site is provisioned (within a delay loop) before continuing the process.
How is this best achieved?
EDIT: This cannot be achieved by using the return status of the creation of the Group. This does not signify the success/readiness of any team site created from that group.
Any such 'site readiness loop' will be handy for any other user process that could be invoked before the site is actually provisioned.