Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2020
Read More about New TechTalks for 2020
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 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 | 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