|
![]() |
#1 |
Участник
|
Hi all,
I am primarily working on supporting integrations between NAV and CRM using the new connector for Microsoft Dynamics. One of the most business needs one the customer sites I am actually working is to get the next no out of the NAV number series tables for using it in primary keys (resp. setup tables). There is more than one way to solve this, but I want to you show you how easily you can do this by using the Microsoft Dynamics Connector SDK. Requirements
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Dynamics.Integration.Mapping; namespace MyCustomFunctions { [MappingHelper] public class MappingFunctions : LocalizedMappingHelper { [MappingFunction (Description="Get No from NAV NoSeries")] [MappingFunctionCategory(Category = "NAV specific")] } } -// code ends here //
EXIT(NoSeriesManagement.GetNextNo(NoSeriesCode,TODAY,TRUE)); -// code ends here // ![]()
![]()
![]()
![]()
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Dynamics.Integration.Mapping; namespace MyCustomFunctions { [MappingHelper] public class MappingFunctions : LocalizedMappingHelper { [MappingFunction (Description="Get No from NAV NoSeries")] [MappingFunctionCategory(Category = "NAV specific")] public static string GetNextNo(string NoSeriesCode) { NAV_NoSeriesManagement.NoSeriesManagement cu70010 = new NAV_NoSeriesManagement.NoSeriesManagement(); cu70010.UseDefaultCredentials = true; return cu70010.GetNextNoCustom( NoSeriesCode); throw new NotImplementedException(); } } } -// code ends here //
![]()
![]()
![]() ![]() Note: This sample should not only show you how to get the next no of a number series. More or less it should help you to get more ideas what you can do with the SDK and how flexible the connector is (even or because some scenarios are not supported out of the box…at the moment) If everything is running well the next time I will provide a CRM plugin to support integrating custom lookup fields between NAV and CRM which is not supported out of the box (at the moment) Regards, Rene Note This is a "FAST PUBLISH" article created directly from Rene Gayer. The information contained herein is provided as-is in response to FAQs. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. There is no warranty for integrity. (Example no specific exception handling included)- You can use this solution for free and for you own risk without warranty or support. Далее
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|