Skip to main content

Notifications

Announcements

No record found.

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

  • Verified answer
    VPrashant Profile Picture
    VPrashant 675 on at
    RE: How to get country/region code prefix from user or from system settings?

    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.

  • Verified answer
    Deepesh161 Profile Picture
    Deepesh161 6,317 on at
    RE: How to get country/region code prefix from user or from system settings?

    Here you go: dynamicsofdynamicscrm.wordpress.com/.../advanced-xrm-development-retrieve-country-code-in-javascript-in-crm-20132015

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans