cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jorge_s
Helper I
Helper I

Get count from listing Groups

Hi,

 

Im trying to get the count from this GRAH API call, but the count is not even showing in the reponse. 

I've seen in the documentation that Count it is supported on Groups.

 

https://graph.microsoft.com/beta/groups?$count=true&$filter=startswith(displayName, 'o')&$select=id,displayName

 

{
"value": [
{
"id": "0af6d28a-83f7-4f5a-bb8f-0ccac4373aca",
"displayName": "Operations group"
},
{
"id": "0e5ae96b-1587-4809-9d43-b079fc583351",
 
2 ACCEPTED SOLUTIONS

Accepted Solutions
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Jorge_s 

 

Use expressions to get the count of the value property in your response which is an array of groups.

Expression name is length

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#l...

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

View solution in original post

v-bacao-msft
Community Support
Community Support

 

Hi @Jorge_s ,

 

Please try this expression:

127.PNG

 

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Jorge_s 

 

Use expressions to get the count of the value property in your response which is an array of groups.

Expression name is length

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#l...

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

v-bacao-msft
Community Support
Community Support

 

Hi @Jorge_s ,

 

Please try this expression:

127.PNG

 

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,445)