cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jan_mac
Helper II
Helper II

How to Filter parent posts only in Yammer?

Good day everyone! Just wanna ask if there is a way to filter only parent posts on Yammer to powerapps. We have integrated yammer to Powerapps we use a gallery to show the posts from our yammer group. This is the formula we use for the gallery item 

 

Yammer.GetMessagesInGroupV2(74064084992, {limit: 15}).value

 

 it shows the posts from our Yammer group however it also shows the comments of the posts which should not appear unless the user taps the comment button. Any help is appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @jan_mac ,

 

This may be because of your parameter 'limit: 15'.

It returns 6 posts and 9 replies.

You could try this:

 

FirstN( Filter( Yammer.GetMessagesInGroupV2(group ID, {threaded: true}).value,IsBlank(replied_to_id)),15)

 

 

Best Regards,

Wearsky

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @jan_mac ,

 

You can filter the records whose value in the 'replied_to_id' column is blank.

 

So you could try this formula:

Filter(Yammer.GetMessagesInGroupV2(your group id).value,IsBlank(replied_to_id))

 

Best Regards,

Wearsky

Thanks! Your formula works however it only shows 6 records why is that? We are using this formula 

varYammer, Yammer.GetMessagesInGroupV2(group ID, {threaded: true, limit: 15}).value

it works but we also wanna try alternative formula, case we need to change it.

v-xiaochen-msft
Community Support
Community Support

Hi @jan_mac ,

 

This may be because of your parameter 'limit: 15'.

It returns 6 posts and 9 replies.

You could try this:

 

FirstN( Filter( Yammer.GetMessagesInGroupV2(group ID, {threaded: true}).value,IsBlank(replied_to_id)),15)

 

 

Best Regards,

Wearsky

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,848)