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

Community site session details

Session Id :

Different ways to check the current legal entity in x++

Anitha Eswaran Profile Picture Anitha Eswaran 312
There are various ways in x++ to check the current company in X++ (Ax2012 / D365FO). 1. Using SysCountryRegionCode::isLegalEntityInCountryRegion Simplest built-in method. Example: ✅ Pros: Direct, readable, uses enum. No Hard-coding of the legal entity ⚠️ Cons: Limited to predefined … Continue reading

This was originally posted here.

Comments

*This post is locked for comments