Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Orderby on annotated fields via the REST API

$
0
0

Hi there,

I need to be able to apply an orderby clause to an annotated field (i.e. order on the "Case Created" string instead of the number 4 for the statuscode field on an incident entity).

Is this possible via the REST API?

When I attempt to use statuscode@OData.Community.Display.V1.FormattedValue in the orderby I get the following error:

{"error":{"code":"0x0","message":"Syntax error at position 54 in 'statuscode@OData.Community.Display.V1.FormattedValue asc'."}}

Please note the fields could be Option Sets or Lookup fields.

I might be able to use expand on a Lookup field but I don't believe this works on Option Sets?

Regards,

Andy


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images