Hello,
we have 2 custom actions apps which use the same code:
var actionBody = new
{
actionUrl = $"{my_service_url_here}/api/v1/hubspot/sendTemplate",
published = true,
inputFields = new List<object>()
{
new {
typeDefinition = new {
name = "whatsappNumber",
type = "string",
fieldType = "text"
},
supportedValueTypes = new List<string>() {
"STATIC_VALUE"
},
isRequired = true
},
new {
typeDefinition = new {
name = "templateName",
type = "enumeration",
fieldType = "select",
optionsUrl = $"{my_service_url_here}/api/v1/hubspot/getTemplates"
},
supportedValueTypes = new List<string>() {
"STATIC_VALUE"
}
},
new {
typeDefinition = new {
name = "parameters",
type = "string",
fieldType = "textarea"
},
supportedValueTypes = new List<string>() {
"STATIC_VALUE"
},
isRequired = false
},
},
labels = new
{
en = new
{
actionName = "Send Whatsapp Message",
actionDescription = "This action will create a new widget to send message template in hubspot. Please notify help description.",
actionCardContent = "Your Number: {{whatsappNumber}}, Template Name: {{templateName}}, Parameters: {{parameters}}",
inputFieldLabels = new
{
whatsappNumber = "Whatsapp Number",
templateName = "Template Name",
parameters = "Parameters and Values",
},
inputFieldDescriptions = new
{
whatsappNumber = "Input your Whatsapp number with country code. eg. 11234567890",
templateName = "Select your template name created from WATI",
parameters = "Fill out pairs of parameter and value according to the template name choosen above. eg. param1:value, param2:value ...",
}
},
},
objectTypes = new List<string> {
"CONTACT", "DEAL"
},
functions = new List<object> {
new {
functionType= "PRE_FETCH_OPTIONS",
id = "templateName",
functionSource = "exports.main = function(event, callback) { return callback(transformRequest(event)); }\nfunction transformRequest(request) { return { webhookUrl: request.webhookUrl, body: JSON.stringify(request.fields), httpMethod: 'POST' }; }"
}
}
};
as you see there is a dropdown which fetches the data from our side,
calling
optionsUrl = ${my_service_url_here}/api/v1/hubspot/getTemplates"
The problem:
app1 calls this endpoint and passes a correct PortalId and
ExtensionDefinitionId as result it gets the data from our side and shows it in dropdown,
but app2 call this endpoint but doesn’t pass any data to our server. content is empty for some reasons.
as result it shows an error in dropdown menu:

I compared these https requests and reproduced it in Postman.
There is only one difference in these requests -
extensionDefinitionId field:
failed for app2, but works for app1:
The logs in our side confirm that data is empty for app2:
app1:
![]()
app2:
![]()
My questions:
What is wrong with “extensionDefinitionId”: 11785357 ?
Why does it work well with
“extensionDefinitionId”: 3627888, but does’t with 11785357 ?
What have I done wrong in the config of the second app which is causing this issue, how can I fix this?
Already spent a lot of time looking for the root cause, please help





