Skip to Content
1
Mar 22, 2011 at 09:25 PM

BPath: Filter by multiple criteria

379 Views

Hello,

today I tried to implement some logic using the BPath feature available with CRM 7 EhP 1.

As far as I know there is the possibility to apply some filter criteria, which are considered during evaluation.

The BPath query I used looked something like:

 ./MyRel[@ATTR1="foo"]/*$

This query could be evaluated without problems. However if more than two filter criteria were supplied the evaluation fails, e.g.

 ./MyRel[(@ATTR1="foo")|(@ATTR1="foo2")|(@ATTR1="foo3")|]/*$

The statement above throws an exception of type CX_WCF_BPATH_PARSING_ERROR.

It would be intresting to know what limitations regarding the filter functions exist.

Best Regards,

Arne

Edited by: Arne Husemann on Mar 22, 2011 10:25 PM