we’re in the process of converting some of our services into flows and ran into an issue: our “Send email” action nodes include a link to the app in the message body, which relies on the hostname built-in service variable. This doesn’t seem to behave the same way in flows.
Is there a recommended way to handle this, or is creating an action variable and manually assigning the hostname value based on the active environment, or using an environment-specific secret as a flow param, the intended approach?
We have registered an issue on the fact that hostname doesn’t currently carry over into flows the same way it does in services. Our engineering team is currently working on addressing this in an upcoming release.
When trying to use flowVariables.hostname in a flow, it’s undefined (see first screenshot), and when used in a function it returns _flow_variables_ (second screenshot).
I can generate the hostname from the active environment, since that seems to work as expected, but it’s not the most elegant solution.