Oct 08, 2020 04:29 AM
I’ve successfully applied both those conditions distinctly:
{customerOwnerRef} = ''
{customerOwnerRef} = '${process.env.NEXT_PUBLIC_CUSTOMER_REF}')
But I don’t understand how to make a logical OR between both conditions, I tried the following but it fails with INVALID_FILTER_BY_FORMULA error:
INVALID_FILTER_BY_FORMULA
{customerOwnerRef} = '${process.env.NEXT_PUBLIC_CUSTOMER_REF}' OR({customerOwnerRef} = '')
Solved! Go to Solution.
Nevermind, I found the solution while writing the question.
filterByFormula: OR({customerOwnerRef} = '${process.env.NEXT_PUBLIC_CUSTOMER_REF}', {customerOwnerRef} = ''),
OR({customerOwnerRef} = '${process.env.NEXT_PUBLIC_CUSTOMER_REF}', {customerOwnerRef} = '')
See Solution in Thread