Is there a way to get group type Id by group name?
Discussion posts and replies are publicly visible
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.
Konduru Chaitanya said: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.
I've tried getting the group Type Id but most of it returns custom. Not sure what to be expected.
same here - i had the exact same test code going. but as i mentioned in my edit, i've also never had the occasion to worry about it, so i'm not sure what limitations it's actually causing the OP in this case.