Hello,
I've got two questions.
1)
I was wondering if there is a way to access timestamps on Service Order Allocations (table 5950) through web services in NAV. I've enabled the Web Service for Page 6001 Service Order Allocations and with that I can list and update Allocations. However, I want a high performance way to detect updated Allocations and checked in the SQL database table and found the timestamp field. How do modify the Web Service so it displays the timestamp field?
I've found that timestamps are available if you integrate with C/Front. Is that my only option?
http://www.rapidionline.com/blog/bid/75943/MS-Dynamics-NAV-Integration-How-to-Access-NAV
2)
When I try to reallocate a Service Order Item to another resource in the RoleTailor client I get the dialog "Reallocation Entry Reasons". That seems to be the problem when I try to reallocate a Service Order Item with the web service and get the exception "Client callback (such as showing Pages) is not supported when executing custom Web services. ENU=Reallocation Entry Reasons"
How do I avoid this exception and reallocate properly?
Best regards
Erik
*This post is locked for comments
Thanks for the answer about GUIALLOWED!
To solve the timestamp issue I use triggers to populate a new table with the updated records in Service Order Allocations.
Hello Erik,
Thank you for posting your questions to the Microsoft Dynamics NAV Forums.
1) The timestamp column on NAV table within SQL Server is used internally to mimic the versioning principle from the Navision Native database. This means that you won't find the timestamp field show up on any table descriptions and C/AL does not have access to this field.
2) To suppress dialog windows with a NAS or web service you can use guiallowed conditional statements. You'll need to review the code and add them around the prompts, such as the 'Reallocation Entry Reasons' in this case.
GUIALLOWED Function
msdn.microsoft.com/.../dd339064.aspx
Hope this information helps and please let me know if there are any other questions.
Kindest Regards,
Scott Wright
Partner Online Technical Community
-----------------------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights
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... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156