Dynamic secure params not working

Hi, I am encountering an issue after packing my app.
Actually, i have a secure iparam with a dynamic name - named api_agentId (eg: api_12345678)

"headers": {
                "Authorization": "<%= iparam['api_' + context.agentId] %>"

When I attempt to use the code snippet mentioned above in requests.json, I encounter authorization issues while trying to communicate with the server.

However, when I use a static name like ‘apikey’ as an example, I can successfully authorize access.

This issue only arises after I pack the app, there are no issues when I use ‘fdk run’.

Could you please provide assistance with this?

Hi @Rithik_S,


I encountered a similar issue a while back. You can consider using SMI (Server Method Invocation) to execute the action and send the data back to the front end.

This way, you’ll have access to the entire ‘iparams’ data in the arguments, allowing you to manipulate it according to your needs, similar to what you did previously.

And It’s secure :wink:

Hope this works!

Thank you.

1 Like

Hi Thank you for the reply @Bene_Immanuel :smiling_face:,

I need to send a request to a server, do you know a way to make it possible.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.