Skip to main content
November 29, 2023
Question

Need to store group in db - what should i store to identify group?

  • November 29, 2023
  • 17 replies
  • 1 view

What should I persist in the db to identify a group?

I may need to migrate this to another system IE: Dev to Test

    17 replies

    mikes0011
    Brainy
    November 29, 2023

    There's no very easy way to do both.

    A group exists in an environment primarily identified by its environment-specific ID (which is just an integer).  There is also a UUID that underlies the group, but this is not easy to use (iirc there's no direct way to programatically get a group Object/ID matching a UUID if you have one to start with).

    For storing a group in the DB that means the only really good option is storing the Group ID.  You can deploy that group to another environment just fine but you *must* build around the fact that its Group ID will almost always be different in other environments.

    The Expression Guru
    sarathkumr268295
    November 30, 2023

    Hi Mike,
    If we deploy groups from dev to test, won't they have the same group IDs since the same object is getting moved from lower environment to higher environment?

    sriramk5349
    November 30, 2023

    Hi [mention:b08a9915dde2428e9c6dfef8cba0cdd6:e9ed411860ed4f2ba0265705b8793d05] ,

    No, The group IDs will be changed