Hi All,
I’m working on common app of FCSS (version 3), where my app will be displayed in freshdesk, freshsales, freshchat etc.
So, I’ve integrated apis for freshdesk and its working fine.
but when I started working on freshsales. its giving me this error.
{
"status": 400,
"headers": {},
"response": "runtime validation failed.",
"errors": [
{
"message": "must be FQDN: app-test",
"instancePath": "/schema/host"
}
],
"errorSource": "APP",
"attempts": 1
}
so, our freshsales url is like this → “Freshworks”
in my requests.json, I’ve this code
"fetchContactsByPhone": {
"schema": {
"method": "GET",
"host": "<%= iparam.freshsales_subdomain %>",
"path": "/api/lookup?q=<%= context.phone %>&f=mobile_number&entities=contact",
"headers": {
"Authorization": "Token token=<%= iparam.freshsales_api_key %>",
"Content-Type": "application/json"
}
},
"options": {
}
},
for iparams.freshsales_subdomain, I’ve tried these below values
app-test, Freshworks, app-test.myfreshworks.com
But still same response.
with freshdesk full domain is working fine. but here in freshsales, I don’t what is the problem.
Please let me know what I’m missing.
I’ve attached this iparams view.