Coalesce or first non-null

Status: Closed · Asked by Richard Sayad on · 0 views

Richard Sayad — Question ·

I tried to use the Default pabbly provided task where I want the first non-null value to be used like the coalesce function in sql. Unfortunately, default fails when the default value supplied by an input parameter is null. How can we simulate the function so that it returns the first not null parameter or just returns null if all of them are empty?

Pabblymember11 — Reply ·

Hey @rsayad

Also, can you tell us are you using the Default Value action step in your workflow.

Richard Sayad — Reply ·
Hey @rsayad

Also, can you tell us are you using the Default Value action step in your workflow.


Yes, I've assigned a nullable field value for default, one example is when I call an api which may or may not find a record to assign for the default value.
Pabblymember11 — Reply ·

Hey @rsayad

Yes, I've assigned a nullable field value for default, one example is when I call an api which may or may not find a record to assign for the default value.

We looked into your concern and seems like it is not possible to pass the null value on the "Default Value" action step's response.

Back to all forum threads · Log in to reply