if we have a custom service, with dates as an input
the payload can be sent like this
{
"Date1": 2025-10-01,
"Date2": 1900-01-01"
}
or
{
"Date1": "2025-10-01"
}
Is there a way to distinguish in FO, if Date2 was sent as 1900 explicitly or if it was not even in the payload?
because when debugging if we set it as 1900, or if we remove the node from the payload, FO service will still show it as 1900
I mean if i want put logic in FO that says, if the value is sent as 1900 then update it with 1900. But if the date wasn't sent, then leave it as is and don't override the existing value in FO. is that possible?
I don't think so. 1.1.1900 is the default value of the date type, therefore it's the same thing if you get no value and it defaults to 1.1.1900, or if you explicitly set it to 1.1.1900. You'll need an additional piece of information to distinguish the situations when you want to remove the date or keep the current value.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.