rappen / FetchXMLBuilder

FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
https://fetchxmlbuilder.com/
GNU General Public License v3.0
135 stars 56 forks source link

Implement use of Early Bound enums in Early Bound queries #829

Closed bwmodular closed 1 year ago

bwmodular commented 1 year ago

For the use of early bound queries to be truly seamless between FXB and IDE, it would be wonderful if you could use EBG OptionSet enums in conditions. For example, to specify the status of a Contact:

query.Criteria.AddCondition("statecode", ConditionOperator.Equal, (int)ContactState.Active);

It helps enormously with readabilibity and avoidance of typos but at the moment we have to edit queries as we cut and paste in and out of FXB if we are using enums in query conditions.

Thanks as ever for all your hard work!