The iparams of the domain and api_key types are validated when the app is installed.
But in local simulation I can never install the app, validation always fails. That would be okay if in production environment it worked, but it don’t. I can install once. If i try to edit the settings and save, validation fails and I can never update the app.
iparams.json
{
"domain": {
"display_name": "Product Domain",
"description": "Please enter your account's Domain",
"type": "domain",
"type_attributes": {
"product": "freshdesk"
},
"required": true
},
"apikey": {
"display_name": "API key",
"description": "Please enter your account's API key",
"type": "api_key",
"type_attributes": {
"product": "freshdesk"
},
"required": true
}
}
Have you whitelisted the Freshdesk domain in the app manifest? If not, please add the Freshdesk domain under whitelisted_domains of your app manifest file.
Refer below code snippet :
manifest.json
@samuelpares,
In addition to @Mughela_Chandresh, if you added the whitelisting domain, and still getting an issue,
please share with us the console errors and HAR logs to debug further.
Yes, i guess it was it. Actually I kept building my app and eventuay I added the domain in whitelist. The error stopped happening, but I didn’t correlate it was it.
I guess it would be nice to mention this in the iparams documentation page, since it’s not me doing the validation, but the sdk, and it worked for the first install.