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 :
Microsoft Dynamics CRM (Archived)

How to get the Sales region based on Country name and zip code?

(0) ShareShare
ReportReport
Posted on by 140

Hi,

How to get the Sales region like EMEA, NA, LATAM, APAC   based on country field value in lead entity. can any one please suggest me? Its very urgent.    Thanks in Advance.

*This post is locked for comments

I have the same question (0)
  • Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: How to get the Sales region based on Country name and zip code?

    Hi Reddy,

    can you describe your requirement clearly, i am not able to understand.

    Thanks,

    Shahbaaz

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: How to get the Sales region based on Country name and zip code?

    The question is whether or not the Sales Region and Country fields are lookup, or other type of fields.

    Option 1:

    Create an Entity called Country and an entity called Region

    In the Country entity add a lookup to the Sales Region so that every country has an associated Sales Region

    In your entity where you want to implement the logic add the Country and Region lookups, and in the Region properties of the lookup add Related Records Filtering so that it shows only the records where Country Contains Region.

    Option 2:

    Create an Entity called Country.

    In the Country entity have fields that map that country to a region.

    When a Country is entered in your entity (on the change event), call the webapi to query the Country entity and retrieve the value of the Region and populate it in the Region field on your form.

    If you need help constructing your web api query, you can use CRM Rest Builder.

    github.com/.../CRMRESTBuilder

    Hope this helps.

  • Indrasena reddy Gunreddy Profile Picture
    140 on at
    RE: How to get the Sales region based on Country name and zip code?

     Hi   Shahbaaz Ansari                          we have Country field in dynamic CRM. when I save or updated the  lead automatically with country name then  sales region will be show in custom field based on country. for example I entered Country name is "India" then custom field should display "BRICS" automatically.

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: How to get the Sales region based on Country name and zip code?

    Country field is lookup of custom entity country?? and what is filed type of sales region??

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: How to get the Sales region based on Country name and zip code?

    Also, what entity is this for (contact/account/custom)? If contact/account are you using the OOB fields or custom fields that you created?

    What is the data type of the country and region fields?

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans