Skip to main content

Posts

Showing posts with the label Power Automate

Power Automate - Replace flow connections with Connection Reference

  Today, I was facing an error while trying to turn the flows ON in target environment. It was showing following error.   {"code":"FlowMissingConnection","message":"The flow is missing a connection for api 'shared_XXXXXXX'. Reauthenticate the connection or remove from the flow and re-save."}}". Upon further investigation, it has been observed that the flows, having an error while turn ON, were using connections and not connection references. How did it happen? When a flow is created outside of solution, and then subsequently added into the solution, it uses connections instead of connection references. And when this solution is imported into target, it creates a new flow outside of solution irrespective of it being inside the solution. Thus, it should always be a best practice to create flows inside solution as connection references are only supported in solution bound flows. How to identify if a flow is using connections or connecti...

Get host (environment) url in power automate

We often get a requirement to send notification to a user with the record url. User can click on the link and quickly navigate to the record he has been notified about. This requires a dynamic host url (environment specific url) to be pulled out within power automate action. When we use Get row action, we also get an oData url of the record. We can utilize this field to extract host url out of it.

Power Automate - Add dynamic url with html tag in teams/email notification

Recently, I was looking to add dynamic url having values coming from the output of some of actions from the top of my power automate to be sent out as teams/email notification.  I was building dynamic url directly in the message section of teams post message action, but for some reason it wasn't working. After that point, I figured out that the html tags with dynamic values does not work directly in the message. To make it work, I have initialize and set variable with the dynamic url and used this variable in the message. This is how the notification received in my teams.