Hello,
I've seen this question asked in various ways - but it's still not clear to me.
Power automate connections. In our environment we have multiple power automate connections that do various things in flows. These connections need renewing every 90D. This is (as far as I can tell) a limitation set by Microsoft and cannot be amended in any way. Sources I could find on that information are
here,
here,
here and
here.
Now of course in an idea world - you'd have created your connections at the same time and/or they'd be nicely collated to have as few as possible, and they'd all expire at the same time. In reality this is different as we all know.
The result is that we have multiple connections which all expire at different intervals. When they expire - they need re-authing in the WebUI.
The only issue is that there is no pro-active alerting to this (be it monitoring the expiry date, or just an email when ones breaks). When you login to the account in PA it of course prompts you to re-auth but that's still very manual.
We have external error handling on our critical flows and that's often how we are alerted to this happening as a flow will fail to run due to the expired connection, then we can go and check manually to rectify. Sadly by this time - a few flows could have failed that share the broken connection and a bit of a clean-up exercise has to happen.
I'd like a way to either report on connections that are going to expire soon (which I believe isn't possible as that date isn't extractable from anywhere), or a daily report of connections that have expired/broken as of the time it was checked.
I found
this article and have made a few iterations of it - and sort of got what I need, but not really:
The flow to do this finds flows with error connections, then cycles through the Connector API's from an array variable to find which one matches, gets the relevant information and puts the URL together which, when used, brings you straight to the broken connection (assuming you're logged in with the right account). All seems well. It also does a buttload of other stuff and parses JSON - but that's the high level.
The only issue is that as well as taking a while to run as it's a very nested flow - is that if the flow is shared with more than one person / co-owner (in our case a lot of flows are co-owned with a group for resilience) - it picks it up as having an error connection. When I check the flow itself - it has no broken connections.
I assume this is because each person that has access within the group can potentially have a connection within the flow and it's one I can't see but is technically broken....I don't know - my brain is mush at this point. When you get into the 4th foreach loop it all starts to melt together in a blur!
Needless to say this is kind of making the result a bit useless because the links goto the connection (most of the time - again it depends on you using the right account to access which is another issue as I can't seem to output the owner/creator of the connection) but a lot of the time - the connection isn't broken, it's fine...so....yeah - and the only recurring theme I can find is that this happens in flows that are co-owned by more than one party (be it a group, or just multiple individuals)
I don't really know what my question is at this point. Probably a combination of:
- why does the above happen?
- how do I fix it/exclude this behaviour? (as the output is massively tainted because of it)
- Is there a better way of reporting on expired connections, or their expiry date? It doesn't have to be in PA.
- If there isn't - why on earth isn't there and who do I have to sell my soul to in order to make it happen?
- Will I retain my sanity if I keep trying to do this?
Any advice (or sympathy) is very, very welcome...
A