How to get EximPort and ProductGroup from AdvanceLicense in ax 2012

Description: - 

In this article we will see about how to get Exim Port and Product Group from Advance License Number.

Here I have given simple demonstration to get Exim Port and Product Group from advance license number in sales order or in purchase order.

If you have advance license number and based on that number you have to get Exim Port and Product Group for that advance license number then you can get by below code.

In you sales order just create modified method in advance license field and paste below code to get Exim Port and Product Group.

Code:- 

EximSalesLine_IN.EximPorts = EximIncentiveSchemeGroup_IN::find(EximSalesLine_IN.EximIncentiveSchemeGroup).EximPortId;
 
EximSalesLine_IN.EximProductGroupTable = EximIncentiveSchemeData_IN::findSchemeId(EximSalesLine_IN.EximIncentiveSchemeGroup).EximProductGroupTable; 

Related Posts

Previous
Next Post »

Thanks for comments.....