My {{connection.apiKey}} variable works perfectly inside my module action, but the exact same variable does not work inside the RPC functions.
Note: I have selected the same ‘Connection’ for both, but when looking at my API server logs, I can clearly see that for the RPC function, my api_key field is sending an empty value, while in the actual action, it’s sending the api_key value.
Screenshot showing my variable and connection (this one is working):
And here’s my first RPC function, which is not sending the api_key:
{
"url": "/get_steps/",
"method": "GET",
"qs": {
"api_key": "{{connection.apiKey}}"
},
"response": {
"iterate": "{{body}}",
"output": {
"label": "{{item.name}}",
"value": "{{item.id}}"
}
}
}
I’ve tested hard-coding my key and everything worked perfectly, so I’ve really isolated it to just not being able to access the connection variable inside these RPC functions.
Thanks for any help!