New Syntax for LookupRowFieldValue()
Summary
Is there any documentation and/or sample code showing how to use the new "dbWheres" argument in a LookupRowFieldValue() function?
Detail
In version 6.8 (maybe earlier), if you use .LookupRowFieldValue() with your criteriaExpression (i.e. - your where clause) as a string you get a warning that this syntax is obsolete. It still runs, but obviously we shouldn't use it going forward.
So, something like this now throws an warning:
.LookupRowFieldValue(si, dbLocation, tableName, criteriaExpression, fieldToReturn, defaultValue) .LookupRowFieldValue(si, dbLocation.Framework, "SecUser", Name = 'Phil Brosnan', "Email", String.Empty)
OneStream wants you to use a new Syntax that replaces the criteriaExpression with a list of where clauses in a dbWheres object.
.LookupRowFieldValue(si, dbLocation, tableName, dbWheres, fieldToReturn, defaultValue)
Unfortunately, there is no documentation or examples on what a dbWhere object is, how to create one, or how to pass that dbWhere object into your dbWheres list.
My question is, does anyone know how to use this new “dbWhere” syntax in a LookupRowFieldValue function, or know how to do something similar with a different function? Just looking for some sample code I can leverage.
Thanks,