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 :
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

 

  • Suggested answer
    Adrian Begovich Profile Picture
    1,032 Moderator on at

    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.

  • Verified answer
    Community Member Profile Picture
    on at

    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
    Community Member Profile Picture
    on at

    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.

  • jbernardo Profile Picture
    20 on at

    thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 31 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 25

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans