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 :
Finance | Project Operations, Human Resources, ...
Answered

In x++ Country region

(0) ShareShare
ReportReport
Posted on by 1,215

Hi guys,

i want to know in this format working to the conditional ? below my code instead of  "ISOCountryRegionCodes".

       //#define.isoFI('FI') // Finland
        const str country = 'FI';

        if(country)
        {
             
           ///  condintion 
        }
       

Thanks. 

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You should be able to find out the answer by debugging. Once you find it, please share it here so others can benefit from it.

    Thanks!

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Riyas,

    Your code doesn't make any sense as 'if' condition will always be true (country variable always has value).

    If you want to check if code is running for legal entity in specific country use SysCountryRegionCode::isLegalEntityInCountryRegion method.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 678 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 407 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 283 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans