Open Closed

How can I add same name Sub-Unit under different node of organization #5967


User avatar
0
bhasinp created
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How can I allow adding sub-unit of same name in different node of organization ? Here is an example/error

Ed: Adding Orgs and Sub units in following sequence

  1. ORG1
    1. ORG-SUB-1 (adding this name works well)
    2. ORG-SUB-2 (adding this name works well)
  2. ORG2
    1. ORG-SUB-1 (get error Organization unit is already exist with name ORG-SUB-1 !!)
    2. ORG-SUB-2 (get error Organization unit is already exist with name ORG-SUB-2!!)
    3. ORG-SUB-3 (adding this name works well)


1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello bhasinp,

    Please check this documentation https://docs.abp.io/en/abp/3.1/Modules/Organization-Units

    it is mentioned that the OU code must be unique so please use an unique codes for organization items and follow hierarchy like instead of ORG-SUB-1 , you may use ORG1-SUB-1 like wise (ORG1) as first root name, so every node will get unique

    Thanks, Anjali

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11