Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
can anyone explain to me how to use maps to enter a value in a field to match another field in another table.
thank you in advance.
Are you asking about AX 7 (current version) or AX 2012 ?
Hi ievgen ,
the AX 7 .
thank you for the reply
and if you can explain to the differences in both AX 7 and ax 2012 in maps I'll be thankfull
In AX 2012 and AX 7 you have maps node in AOT there you can create a map. CustVendGroup could be nice example.
Map object has fields and mapping. For example CustVendGroup has GroupId field.
In AX 2012 there is a node mapping where you can specify which tables are mapped to this map and which fields are mapped to map fields.
In AX 7 you can specify same data on table level instead of the map. That's the only difference between AX 2012 and AX 7.
So we have 2 real tables CustGroup and VendGroup. They have GroupId field. This filed is mapped to CustVendGroup map.
Now you can write a code that will work with CustVendGroup instead of CustGroup or VendGroup table.
For example you can create universal method that will accept both cust and vend group and validate them, something like this:
public void validateCustVendGroup(CustVendGroup _custVendGroup)
throw error('Empty group!');
Now you can use it for Cust Group or Vend Group.
public void validate()
Business Applications communities