Dynamics NAV 2013 R2 OData

Hi,

I’m trying to call the page 5404 (“Item Units of Measure”) through a web service. Whenever I’ll open it I’ll get this error “The Item does not exist. Identification fields and values: No.=’’”. Same error occours when I run this page from within C/Side.

The reason for this is this line:

  OnOpenPage()
  Item.GET("Item No.");

When I call this page through the OData service Rec.Fields.“Item No.” is unset.

Question now is: How to set it from an OData call?

Thanks for your help,

Jörg