How do I get an ID of a team by name?
Article 2971073, Status: VALIDATED
Table of Contents
❓Issue/Question
- I want to get teamId by using a name
- What is the teamId for “CS2-1” in CS2?
💻Environment/Context
- Central Data
👌Resolution/Answer
- You need to use the Teams query and filter by name. Example below (title optional)
query Teams {
teams(filter: {
name: {contains: "CS2-1"},
titleId: "28"
})
{
edges {
node {
id
name
}
}
}
}