Hi James,
maybe I do not understand your question correctly. If so, please provide exact infos, what you want to achieve.
The data action should work even if some "date of birth" are missing. The action only failes if there is no date of birth in not a single of your date-objects. For that case you need to configure the "translationMapDefaults" correctly.
"translationMapDefaults": {
"ArrayDateOfBirth": "[]"
}
This will write an empty array into your result. My example is working with a string-array. Maybe the "[]" will not work and [] without " will? Never did an integer-array before.
------------------------------
Christoph Domaschke
Produktmanager Kunden-Dialog-Center
------------------------------
Original Message:
Sent: 03-09-2026 13:29
From: James Foster
Subject: Help with Data Action configuration - Arrays and Objects
I am building a custom data action for a customer's external application. The data action sends an input and retrieves customer details from the application. Part of the output includes a "Dates" object which contains an array of dates which include contract start date, contract end date, and customer date of birth. The issue I have is some records don't include the date of birth which is causing my action to fail in some cases. The date of birth is the only value from the array that I need for my inbound flow.
This is an example of the output:
"Dates": {
"Date": [
{
"Type": "CONTRACT_START_DATE",
"Value": 20240110
},
{
"Type": "CONTRACT_END_DATE",
"Value": 20280109
},
{
"Type": "MONTHLY_PAYMENT_DUE_DATE",
"Value": 20260309
},
{
"Type": "LAST_PAYMENT_DATE",
"Value": 20260209
},
{
"Type": "DATE_OF_BIRTH",
"Value": 19510805
}
]
},
I have the the Date of Birth configured as an integer contract for my outputs. In my translation map it is conifgured like this:
"ArrayDateOfBirth": "$.Dates.Date[?(@.Type=='DATE_OF_BIRTH')].Value",
My success template is configured like this:
\"DateOfBirth\":${successTemplateUtils.firstFromArray(\"${ArrayDateOfBirth}\")}
How can I configure my data action to still run successfully, even if the date of birth value is not present in the Date array? I'm guessing I can use the Translation Map Defaults but I am struggling to get this working for the array.
#API/Integrations
#ArchitectandDesign
#Implementation
------------------------------
James Foster
Technical Consultant
------------------------------