Key as Segment in V4 oData RAP

In Odata usually the entity can be accessed by providing the KeyValue in canonical form. But now in RAP V4 oData services, the entity can be accessed by appending a segment containing the unquoted keyvalue to the URL.

Single Key-

/service/Employees(‘A1245’) =>New Way : /service/Employees/A1245

MultiPart Key

/service/OrderItems(OrderID=1,ItemNo=2) =>NewWay: /service/OrderItems/1/2

The below is a V4 service.

Usual way of accessing the entity-

The new valid syntax-

MultiKey Part Entity-

The new valid syntax-

It also works with navigation-

TravelAgency Entity-

Navigation from TarvelAgency to Country-

New valid syntax-


Leave a Reply