Skip to main content
Known Participant
May 20, 2024
Question

Is there a way to get group type Id by group name?

  • May 20, 2024
  • 8 replies
  • 0 views

Is there a way to get group type Id by group name?

    8 replies

    stefanhelzle0001
    Brainy
    May 20, 2024

    Did you try a!groupsByName()?

    The Appian documentation, specifically the list of functions, is a great resource to find such things.

    konduruc733182
    May 20, 2024

    What is the requirement? Do you mean Group Id by Group name or is it the same question what you have asked.

    Group Id by Group Name - a!groupsbyType() - Returns the Group Id

    a!groupsByName("Group Name")

    Edit: Removed group type Id by group Name described in my answer. Refer Mike’s detail on it.

    mikes0011
    Brainy
    May 20, 2024
    Group Type Id by Group Name

    For what it's worth - the code you've given here returns the Group Type Name, but that is different from the type ID - I'm unable to find a pathway (with OOB functionality or even the rules available in People Functions plug-in) to trace back to Group Type ID.

    Caveat: I've basically never needed to directly interact with Group Type IDs (and never use anything other than "custom"), so I'm unclear what use case could possibly require it.

    The Expression Guru
    konduruc733182
    May 20, 2024

    I've tried getting the group Type Id but most of it returns custom. Not sure what to be expected.