Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to I properly create this 1:N Relationship?

Posted on by Microsoft Employee

We currently work with local governments and have a slightly complex need. Suppose you have a list of cities:

  • New York
  • San Francisco
  • Houston

Each address in these cities has been specified as a certain type of property:

  • Residential
  • Commercial
  • Agricultural
  • Protected
  • Wetlands

Each of these 'types' has identical fields:

  • Existing Structure? Y/N
  • Buildable? Y/N
  • Minimum distance from building to edge of property?
  • Total size? 

Our issues lies with the fact that certain cities only have certain types, so while New York might have Residential and Commercial addresses, San Francisco might instead have Commercial and Protected. To make things more difficult, Commercial in San Franscisco may require at least 5 meters from a building to the edge of the property, but Commercial in New York might require 8 meters.

The initial idea was to create 2 separate entities, 'City' and 'Property Type'. The 'Property Type' would contain all fields needed, such as total size and existing structure, and an entry would be created for each property type for each city. However we are now doubting that this is the correct methodology to accomplish what we want, and still don't fully understand how to bind the City and Property Types. Our goal is to simply select those 2 lookups (City and Property Type) while on an opportunity, and then view the values stored in the Property Type fields.

Any guidance would be greatly appreciated!

  • Abigail Profile Picture
    Abigail 550 on at
    RE: How to I properly create this 1:N Relationship?

    This document would guide you.

    docs.microsoft.com/.../create-and-edit-1n-relationships

    Regards.

  • Verified answer
    winston he Profile Picture
    winston he 220 on at
    RE: How to I properly create this 1:N Relationship?

    I think your current design is the one which can implement your  biz requirement.  If you want to limit the property type for different city, you could apply a custom lookup fitler:

    www.inogic.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans