Does anybody have any suggestions on how to post orders from a NAS client to different companies.
Here's what I'm trying to do...
I have created a codeunit to send and receive info Using Webservices then created a Job Queue and a NAS client to run every 15 minutes. The webservice sends orfder information to several companies in Navision thru heavy use of CHANGECOMPANY. In most cases this works fine, but when we get to posting for instance orders in Navision this gets complicated.
Because Codeunit 80 calls a bunch of different functions and uses several tables.
What I really would love is to be able to CHANGECOMPANY globall within the current client, then my problem would be solved. But no such thing exists as far as I know.
Any help would be appreciated
Thanks
It's happening when you use change company you should not use VALIDATE method other things go well. look your code and remove VALIDATE codes.
Thanks Ahmed; The file I'm getting contain data for all Companies. but I'll do what you have suggested and try to add code to pull company specific data from the file.
Thanks again for your reply and help
I suggest to create Job queue in the other companies and each job queue for that company will process the orders.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148