Forum Discussion
Cosmic_Kitchen
May 24, 2023Copper Contributor
Logic App Workflow() function returning un-expected results
I am new to Logic Apps, but fairly well-versed in Power Automate. In Power Automate I have a small child flow that I use as an error handler and call it from other flows to send me an email with a li...
Kidd_Ip
Nov 15, 2025MVP
The difference you are seeing comes from the two hosting models of Logic Apps. In Consumption (multi-tenant) Logic Apps, the workflow() function returns a fully qualified resource ID with subscription, resource group, and provider details. In Standard Logic Apps, the workflow() function returns a shorter, relative path (/workflows/<workflowId>). That’s why your error handler logic works in one case but not the other. To fix this, you are required to normalize the run identifiers or construct the portal URL differently depending on the hosting model.