Hey all,
We’re building a Zapier app, and in the authentication step for our app, we’re creating the below response which is fine:
I know that you can use
bundle.authData.xxxxx
to pull in the auth data in later api calls for triggers/actions, I thought so anyways?!
How could I call the field “adalo_id” with the bundle.authData into my action or trigger api calls?
I tried both
bundle.authData.adalo_id
and
bundle.authData.adaloId
but those are not working…
More precisely, I need to get the “adalo_id” and place it at the end of the url for the endpoint in my api call/settings for a trigger, see below code >
// Configure a request to an endpoint of your api that
// returns custom field meta data for the authenticated
// user. Don't forget to congigure authentication!
const options = {
url: 'https://api.adalo.com/v0/apps/xxxxxxxxxxxxxxxxx-492f-b6fc-2xxxxxxxxb474679/collections/t_xxxxxxxxxxxxxxaeb2a5/?{{bundle.authData.adalo_id}}',
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer 7xxxxxxx7yvhxxxxxxxb5xxxxx'
},
params: {
}
}
return z.request(options)
.then((response) => {
response.throwForStatus();
What am I missing or how can I do this?
Thank you!!!