web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Country region specific condition in AX 2012 / D365

Sheikh Sohail Profile Picture Sheikh Sohail 6,125



There are two way to restrict your customization with country region..


  1. Code Level Restriction 
  2. Elements Level Restriction




Code Level Restriction 

           Below is code & Screenshot  sample to restrict


#ISOCountryRegionCodes

if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoPK]))
{


// TODO

}




Elements Level Restriction

       Below is element property & Screenshot  sample to restrict.

In this blog we are using output menu item to implement country specific restriction 

Select Menu Item properties and Enter Country Code in country region code Property.

Screenshot sample


Now Build Your D365 Model and verify... Your code will execute and element will show only if you company address set as PAKISTAN..


This was originally posted here.

Comments

*This post is locked for comments