Hi,
I have a codeunit webservice for exporting products. Instead of exporting the entire item table in one batch, I'd like to split it up into smaller batches, and then have the consumer party request the web service continuously. I'm using a custom table to keep track of, how many records have been exported, so I would like that table to be distributed with the code unit, but I haven't found any way of doing that.
Perhaps my approach with the table is not the best? Any advice would be much appreciated.
BR.
Lars
0
Answers
If you are exporting the table in "primary key" order, then add a parameter in your webservice, allowing the consumer of the webservice to send info about the last received products primary key value. Use that info to find the next record(s), and send the record(s).
Sorry, I've had problems logging in.
That's a good suggestion, but that's not an option in this scenario, as the consumer system is not able to pass parameters in the request to the webservice. That's why I need to keep track of the progress in NAV.
BR.
Lars
Then use a page web service.
Do they have an api you could call instead?
BR.
Lars