web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Autofill owner's territory information in custom entity

(0) ShareShare
ReportReport
Posted on by 4

Hi fellow D365 explorers,

I created a custom entity and I am trying to include in its form a field that is autofilled with the "Territory" information per the owner of the record. I'm naming this field "Territory" as well, and I'll enable its security so my users don't have to do anything to it. (Because it'll be auto populated)

Would you please let me know what relationships and mappings I need to create? 

Thank you and stay safe!

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Id you are referring to refrencial mapping which exists in 1:N relationship then it wont work in your case as it only works for child records which are created from the parent record. So unless you are creating your custom entity record from a subgri of user, th relationship mapping wont work.

    If you do not intend to ever change the value to some value other than owner's territory then I think the best/ easy option is to create a calculated field and use "owner.territory" as the logic.

    Something like this: community.dynamics.com/.../how-to-get-value-from-a-look-or-other-related-entity-using-calculated-field-in-microsoft-dynamics-crm

    Alternatively, you can create a real time workflow which updates the fields from owners territory if there is no value init. However in this case, it will only populate if there is no value and after safe.

    Hope this helps

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 185 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans