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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Filtered option-sets on custom entity fields

(0) ShareShare
ReportReport
Posted on by 75

Hi Community,

I have two custom entities 'Location' and 'Clinical Office Location'. Location consists of master data of countries, states, suburbs, postcodes, latitude and longitude. This is populated as a one-off activity (which may involve additions/updates at a later stage, but not that frequent).

On the 'Clinical Office Location' entity, I have Country field as a lookup to the Country master. The State and Suburb fields are empty option-sets that need to be populated based on the Country chosen. State and Suburb are not entities, but fields in the 'Location' entity.

So, as an example, when I choose Australia as the country, I need to populate the State field with all Australian states from the Location entity and subsequently the Suburbs based on the State chosen. It doesn't seem that easy to do so in D365 for such a basic requirement.

Any help is appreciated.

Thanks,

Dominic.

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Dominic,

    The easiest way for you if you don't want to write any code - create entities country, state, city e.t.c. and build relations between it. Add lookups to your entity that reference mentioned entities. To organize filtration that is based on record selected you can use OOB lookup filtering.

    Good luck.

  • Dynamics4Dom Profile Picture
    75 on at

    Thanks Andrew.

    I was moving towards this same approach, but wanted to confirm if there was any other way prior to doing so.

    Cheers,

    Dominic.

  • LuHao Profile Picture
    40,892 on at

    Hi Dominic,

    In addition, you can also install the POWERAPPS component to your organization using PCF.GALLERY.

    PCF.GALLERY has a tool AddressFinder Australian Addresses that automatically populates Australian addresses.

    It does not need to encode or configure additional entities.

    For how to install POWERAPPS components from PCF.GALLERY to your organization, please refer to this blog.

    https://carldesouza.com/how-to-install-powerapps-components-from-pcf-gallery-to-your-org/

    This is the download address for AddressFinder Australian Addresses.

    https://pcf.gallery/addressfinder-australian-addresses/

  • Dynamics4Dom Profile Picture
    75 on at

    Thanks for your reply Hao. We actually don't have a requirement for validating Australian addresses plus the API comes at a price.

    What we need is a cascading option-set (or lookup) functionality of Country > State > Suburb > Postcode. We may probably go the way suggested by Andrew which involves configuration and no code.

    Thanks,

    Dominic.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans