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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get country/region code prefix from user or from system settings?

(0) ShareShare
ReportReport
Posted on by 675
Set the default country/region code
 Enable country/region code prefixing
Country/Region Code Prefix

Hello,

I need to get the default Country/Region code prefix in javascript. But I am not able to get this field anywhere. Could someone let me know how can I achieve this?

Thank you,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Deepesh161 Profile Picture
    6,317 on at
  • Verified answer
    VPrashant Profile Picture
    675 on at

    Hello Deepesh,

    Thank you for your answer. Infact I was actually looking for fetch query like this:

    <fetch distinct='false' mapping='logical' output-format='xml-platform' version='1.0'><entity name='usersettings'><attribute name='defaultcountrycode'/><filter type='and'><condition attribute='systemuserid' operator='eq-userid'/></filter></entity></fetch>

    But I got idea from your answer. Thank you very much.

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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans