Expressions in query ranges

When creating expressions with comparisons to strings you might have to surround the string with " " like in the example below.


queryRange = strFmt('((%1 == \"%2\") || (%3 == \"%4\"))',
fieldStr(ProjTable, Responsible),
queryValue(element.getEPProjWebApp().EPProjUser().emplId()),
fieldStr(ProjTable, ResponsibleFinancial),
queryValue(element.getEPProjWebApp().EPProjUser().emplId()));


It's important to use \" to achieve the correct behavior.

Read more about ranges here

Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking