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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s