Open Closed

Organization Unit assigned to Countries #2502


0
sergiop created

Hello I was reading the OU information and samples, they are mostly, to know how to create entities that can belong to OUs.

But my question is when adding OU (only need root so far), I need to use OU and map it to Countries, having Country name and ISO country Code ("China", and "CN" for example.) The OU description (name) should come from a table, we will not allow the user to enter the string they want.

I've created the Country table then I was thinking to modify the "Add OU" feature just to let me take those values from the countries table. But before proceeding with that I would like to ask, if maybe Is there any built in way to map the Country Table to OU at root level?

Thank you very much !


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    There is no built in way of doing this. It is a good way to extend Organization Unit Entity and add it to required fields (Country Code, etc..), see <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities">https://aspnetzero.com/Documents/Extend ... g-Entities</a>.

    And then you can modify Add OU functionality.