Getting Tenant Freshdesk Domain from the Custom Installation page of Freshdesk Custom App

In the custom installation page of an app inside Freshdesk, in the iparams.html, we call the Freshdesk API for some of the operations. Earlier we were able to get the tenant Freshdesk domain i.e “xxxx.freshdesk.com” from the HTML document object. This domain was used for calling the Freshdesk API.

Due to some changes from the Freshdesk side, the document object is not referring to the Freshdesk domain of the tenant, but it is referring to a URL which is “*****.appgallery-ind.freshworks.com”. Due to this the installation of our app is failing.

Is there any cleaner way of getting the tenant Freshdesk domain from the iparams.html page, using some utility, without the need of resubmitting the node app for approval, as we already have the app published in the Freshworks marketplace.

Thanks

2 Likes

@Satya_Ranjan_Naik ,
Good Day! Welcome to our community!

Since the Freshdesk migrated to the new gallery, it is not possible to refer the document object,
and you can’t get the domain name from it.

instead there is an another approach (data-bind) you can use in the new gallery

eg:

this will pre populate the domain name of the current account

FYI: this feature is not yet documented in Freshdesk but it is already there in Freshsales documentation

Sometimes, you might require certain product settings while installing an app. At present, you can retrieve the product's **API key** and **Domain** by using data-bind as shown in the following sample code.
<input type="text" name="api_key" data-bind="product.api_key"> 
<input type="text" name="domain" data-bind="product.domain">

Hope it helps :slight_smile:

Thanks

1 Like

@Satya_Ranjan_Naik

Here’s some additional information that can help:

2 Likes

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