Symptom
You are looking for ways to retrieve Dynamic Group name via OData API. On this KBA we will explain and exemplify how to do it.
Environment
SAP SuccessFactors Platform
Resolution
You can retrieve the name of a Dynamic Group by using the below ways:
Querying the whole Dynamic Group (retrieves all fields from it)
- Query: https://<API-Server>/odata/v2/DynamicGroup(2409L)
- Response:
{
"d": {
"__metadata": {
"uri": "https://<API-Server>/odata/v2/DynamicGroup(2409L)",
"type": "SFOData.DynamicGroup"
},
"groupID": "2409",
"groupName": "Organizational Design Expert CA",
"groupType": "ectworkflow",
"activeMembershipCount": 1,
"createdBy": "Chris",
"lastModifiedDate": "/Date(1505907023000)/",
"staticGroup": false,
"userType": null,
"totalMemberCount": 1,
"dgExcludePools": {
"__deferred": {
"uri": "https://<API-Server>/odata/v2/DynamicGroup(2409L)/dgExcludePools"
}
},
"dgIncludePools": {
"__deferred": {
"uri": "https://<API-Server>/odata/v2/DynamicGroup(2409L)/dgIncludePools"
}
}
}
}
Querying only the Dynamic Group name (retrieves only the name)
- Query: https://<API-Server>/odata/v2/DynamicGroup(2409L)?&select=groupName
- Response:
{
"d": {
"__metadata": {
"uri": "https://<API-Server>/odata/v2/DynamicGroup(2409L)",
"type": "SFOData.DynamicGroup"
},
"groupName": "SFAPI"
}
}
See Also
Keywords
dynamicGroup, dynamic group, odata, groupName, query , KBA , LOD-SF-INT-ODATA , OData API Framework , How To