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 :
Service | Customer Service, Contact Center, Fie...
Answered

Default location code for contacts

(0) ShareShare
ReportReport
Posted on by 20

is it possible to have the location code set automatically for all new contacts to :   02

 This way when quotes are done it will populate automatically.

 Right now when the do quote  it is not added when to make it an order it is not filled in, then we have to go to each line and manually  add the location code

 

I have the same question (0)
  • jbernardo Profile Picture
    20 on at
    RE: Default location code for contacts

    thank you!

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Default location code for contacts

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

    pastedimage1605085739425v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Default location code for contacts

    Hi John,

    Many ways can set default location code when new contacts are created.

    1.Workflow.

    Go Settings > Process.

    pastedimage1604975717209v3.png

    2.Business rule.

    Go Settings > Customization >Customize the System > Entities > Contact > Business Rules.

    pastedimage1604975743585v4.png

    3.Flow.

    Go Power Automate(https://us.flow.microsoft.com/en-us/ ) to create an automated flow.

     pastedimage1604975798734v5.png

    4.JavaScript.

    function locationCode(executionContext) {
        var formContext = executionContext.getFormContext();
        formContext.getAttribute("new_locationcode").setValue("02");
    }

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at
    RE: Default location code for contacts

    Hi John Bernado,

    You can achieve this by creating a Flow, Plugin, or Workflow to set the location code to 02 whenever a contact is created.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans