I have a custom connector. For simplicity's sake, let's say a request is of the format
{
"foo" : 5,
"optional_bar" : 3
}
optional_bar is optional, so this will work
{
"foo": 5
}
But this will not work
{
"foo": 5,
"optional_bar" : null
}
This is a feature of the API I am communicating with, not Power Automate. So here is my question.
Sometimes optional_bar will be null, sometimes it will contain a value. How can I stop the custom connector / Power Automate including any property whose value is null?
Yes I could use a conditional to check if its null, and then call an action with or without that field filled in. However my example is simplified - in real life there may be many many properties with nulls and including all permutations would be difficult.