Hello everybody,
I created a table and a page and exposed it as a webservice in NAV2016.
Creating, reading and deleting works fine through webservice calls, but I'm having problems getting update method to work. The values never seem to change, although NAV doesn't complain.
The update method requires a Key value as a parameter. To get this after object creation, I use ReadMultiple and assume that the last entry in list is the recently created item. Is there a better way to do it?
Also the key looks broken:
<Key>12;XMMAAACHAgU=7;10432370;</Key>
The webservice gets called with these parameters (i want to update Comment field):
array(1) {
["Picklist"]=>
array(2) {
["Key"]=>
string(26) "12;XMMAAACHBQU=7;10436910;"
["Comment"]=>
string(4) "1234"
}
}
That's the response:
{"response":{"Picklist":{"Key":"12;XMMAAACHBQU=7;10436910;","Code":"L-6","Description":"desc","Location_Code":"location"}}}
Notice that the field i want to update is missing - why?
When i check the page in RTC, the field is not updated.
Can you give me a hint?