Can a parent and child in a list have the same code?

Hello,

Can a parent and child in a list have the same code?

Tagged:

Best Answer

  • rishi8118
    Answer ✓

    No, a Child and Parent cannot have the same code. It will throw an error.

    Suppose we have a list named Check,

    One of its member names is A and its Code is 20. Now, I insert a child named B and Try to put the same code it will throw an error

    " Setting the code of 'B' to '20' is not permitted
    '20' clashes with the code of List Member 'A'

Answers

  • Hi @sagarkpr ,

    It is not recommended to have similar codes for both parent and child lists. Though you can technically go to the backend and type/modify codes of parent or child lists to have similar codes, it will fail when you load list through imports or while adding items to the list.

    Cheers!

  • Hi @sagarkpr ,

    No a parent and child in a list cannot have the same code. A code is being used as unique identifier for list so it doesn't make any sense to have same code for 2 different list items, the system will automatically throw an error.

    Hope this helps !