Skip to Content

$expand passing query value as '00000000' instead of original value

Hello All,

I have created an OData Service with two entity sets PHeaderSet PItemsSet having an association between them.

PHeaderSet is associated with PItemsSet in the ratio of 1:1.

When I am passing the query as /PHeaderSet('00000017')/HeaderToItemsNav, it works.

But when i pass the query /PHeaderSet('00000017')?$expand=HeaderToItemsNav , though the service gets executed but the value is sent as '00000000'.

HeaderToItemsNav is the name of the navigation set.

Can anyone please help me out on this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 11 at 02:44 PM

    Hello,

    You should implement the both methods get_entity for Header and Item.

    Regards,

    Joseph

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01 at 01:09 PM

    Thanks Joseph

    Add comment
    10|10000 characters needed characters exceeded