Forum Academy Marketplace Showcase Pricing Features

Fill dynamic URL variables from database in API connector action

Hi everyone,

I’m trying to integrate with an external REST API over which I don’t have control. It looks like so:

GET https://www.example.com/employee/[employee-id]/name

The part which is [employee-id] is dynamic, so I’m using squared brackets.

What I don’t understand though: How do I now fill the value dynamically from a field called “employeeId” stored with every user in my Bubble database? Of course I have to uncheck the “private” checkbox in my API call section, so much is clear. But how do I actually refer to the database field in the context of an action API call?

Did you try “Current user’s employeeid” in the workflow action?

Ho. Check if your api is defined in bubble as “data” or “action”. I think it should be data in this case.
Ciao.

Just tried it, unfortunately does not seem to work. :frowning:

Hm, changing it to data does not seem to solve the issue neither. It really seems that the url parameter is simply not filled, but I have no idea how to achieve that.