Calculate Key for WebService Update from Sql Query in Navision 2009

淺唱寂寞╮ 提交于 2019-12-13 05:12:08

问题


I am exposing some Pages in Navision 2009 as web services. To update a record, you have to issue a Read request, and send the Key field along with your Update request.

I would rather calculate the Key myself for 2 reasons:

  1. Using the filters in the read request is awkward - a sql query would fit on one line.
  2. Performance is terrible.

I've been able to figure out that at least part of the key is a Base64 encoded string of the columns that make up the primary key. I hope that someone can tell me where to look (database, code base, docs, etc) to tell me how the Key is calculated.


回答1:


Sorry, I don't know how to calculate the key. Instead of calculating the key, have you considered doing your data manipulation in a codeunit instead, and exposing that codeunit as a webservice?



来源:https://stackoverflow.com/questions/17204406/calculate-key-for-webservice-update-from-sql-query-in-navision-2009

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!