Custom app installation not working

I have an app that works completely fine locally, but when I try to install it as a custom app, it gives a validation error as shown below.

Here is my iparams.json:

{
  "domain": {
    "display_name": "Domain",
    "description": "Enter the domain of your Freshworks CRM account.",
    "type": "domain",
    "data-bind": "product.domain",
    "required": true,
    "type_attributes": {
      "product": "freshworks_crm"
    }
  },
  "fresh_api_key": {
    "display_name": "Fresh API Key",
    "description": "Enter your Freshworks CRM API key.",
    "type": "api_key",
    "data-bind": "product.api_key",
    "secure": true,
    "required": true,
    "type_attributes": {
      "product": "freshworks_crm"
    }
  },
  "calendly_api_key": {
    "display_name": "Calendly API Key",
    "description": "Enter your Calendly API Key.",
    "type": "api_key",
    "secure": true,
    "required": true,
    "type_attributes": {
      "product": "freshworks_crm"
    }
  }

I’ve noticed when I place the fresh api key in the Calendly field, the error goes away and the installation works, leading me to believe the error is caused by Fresh trying to validate my Calendly api field. How do I prevent it from trying to validate this api key?

Hi @Nathan_Oh,
Good day!

"calendly_api_key": {
    "display_name": "Calendly API Key",
    "description": "Enter your Calendly API Key.",
    "type": "api_key",
    "secure": true,
    "required": true,
    "type_attributes": {
      "product": "freshworks_crm"
    }

instead of the above one :point_up: use the below one for Calendly API :point_down:

"calendly_api_key": {
    "display_name": "Calendly API Key",
    "description": "Enter your Calendly API Key.",
    "type": "text",
    "secure": true,
    "required": true
}

FYI:
we domain and API key type only for Freshworks domain only

Hope it helps :slight_smile:

Thanks

Got it, I’ll make the change. Thanks!

1 Like

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