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...
Unanswered

Set default value on lookup field from custom entity

(0) ShareShare
ReportReport
Posted on by 40

Hi need help here.

I set up a custom entity for country and in the existing contact, I create a new field as a lookup from this new entity.

How can I setup a default country on this lookup field when form load, ie creating a new contact?. I can't use business rule as it conflict with another setting for the state country dependency. 

  • Psy Profile Picture
    5 on at

    You can use some JavaScript tied to the Form On load function.

    Define a simple function, Get the logical name of the field & logical name of the look-up value you want to prefill. Then just set the value.

  • DavePinch Profile Picture
    Microsoft Employee on at

    Hi COOL, this forum is for Dynamics 365 Guides, a HoloLens app for mixed reality training and guidance. If you tell me which Dynamics product you are using, I can move your message to the appropriate forum and ensure you get the right visibility.

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

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

#1
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans