Unable to get iparams on app update

Hi,

In the iparams I use the SMI and make an API call to an server and pass the iparams data along with it.

this works fine on install and for updates(iparams data) too.

But when I update the app source code and try to update the app, the iparams data is not sent to the server in this scenario!

Can anyone check this?

Thank you.

Hi @Bene_Immanuel,

I’m unable to understand your scenario and the issue exactly. Can you share it in detail with example and what happens when?
What is the expectation and what is the current behaviour?

Sure @Raviraj,

I use the template request to make API calls to my middleware, and I include the account ID and API key from the iparams in the headers to identify and authenticate the accounts.

And all the API calls are made in the iparams config file, so this works fine during installation and settings update (just trying to change the applciaiton settings).

But when I update the application (like after the updating the zip file) the headers are empty so couldn’t validate and save the app.

So I removed the validation before save event and tried again the headers were still empty , but I was able to save the applciation (just to load the new souce code).

And came again to update the actuall data, but now the headers are not empty the iparams values were properlly populated.

So essentially, when I update a new zip file, the iparams value in the request header becomes empty.

Hope this helps!

Thank you

@Bene_Immanuel When you mention settings change and validation on save event, do you still mean iparams or app settings?

Can you please share a simple code for which code the iparams are added and how it’s used in the iparams configs file?