I have a module “M” with 2 fields “F1” and “F2”, both are string data type.
Also, I have created an workflow (trigger - before insert) to check “F1” and “F2” values.
Inside workflow I used “isNil” function to check if for a specific field has been sent a value:
isNil(record.values.F1)
If for field “F1” I don’t mention any value and I try to save the record, the workflow
will fail → failed: expected type interface {} for parameter 0 but got
I have tried “coalesce” function too, like:
coalesce((record.values.F1, “”)
but, unfortunately, I have got the same message → failed: expected type interface {} for parameter 0 but got
Why is this behavior ?
How should I use “isNil” or “coalesce” functions ?
In my above post the error message hasn’t been saved appropriately.
The error message is → failed: expected type interface {} for parameter 0 but got “nil”