Hello,
Strangely, the dynamic data “Website home URL” is not available when creating workflows in the “API Workflows” panel, while we can still access things like “Object’s link”.
Until now the nly possibility is to “hardcode” the URL by specifying it as text, which forces to create different actions for development and live version (since home url is different), and also is not convenient when changing domain.
Is there a particular reason for this ?
3 Likes
I’d like to revive this idea. I’ve come across this need several times this week alone. Would be great to have this!
1 Like
I just ran into this issue. Does anyone know, if it has been fixed or can be achieved somehow?
Huh, I can do this as expected. You don’t see it in the data sources?
Oh. yes I do. Actually I just discovered that the issue is a bit different. I can choose “Website home URL” but what is actually applied, when the workflow runs is the URL of the bubble app, not the custom domain, that I’ve set for the app. So this is probably either a bug, or me missing something.
When i call the “Website home URL” anywhere else in my app, it calls custom domain just fine.
No, it’s whatever URL that is used to schedule / hit the API workflow.
If you schedule a workflow from <‘x.bubbleapps.io/version-test/‘>, then that is the website home URL.
Ah, i think I got it. The workflow is trigged by a Database trigger event, that’s probably why the bubble-app url is applied rather than the custom domain - It explains it, but it’s not entirely intuitive by design for me. I would expect the “Website home URL” to always respect a custom domain if one is set.
Oh, I haven’t thought about that edge case, sorry.