cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
li88li
Regular Visitor

Get messages action for MS Teams

I am trying to use Get messages action in my flow inside MS Teams Power Automate plugin. 

 

Output of this action seems faulty. Besides actual messages that are in channel, the action returns a lot of blank messages (according to output they are system messages) and also other kind of blank messages (which are once deleted messages). Also it does not return all actual messages but only some of them with no clear reason (all the messages are simple text strings)

 

Does anybody else have similar problems? Are there any updates available for this action?

1 ACCEPTED SOLUTION

Accepted Solutions
v-chenzhi
Community Support
Community Support

Hi @li88li ,

 

In this 'Get message' action, there are several possibilities for the output to be empty:

1. Deleted message.

2. Unsupported content, such as 'Post message in a chat or channel', when retrieved by get message again, the display is empty.

I suggest you limit the message content to text and filter messages with empty content.

Please try the following workaround If it helps.

Edit the Filter array in advanced mode.

vchenzhi_0-1638173708120.png

@and(and(not(equals(item()?['body/content'], '')),equals(item()?['body/contentType'], 'text')),equals(item()?['body/contentType'], 'text'))

 

 

Best Regards,

Zhi Chen

View solution in original post

3 REPLIES 3
v-chenzhi
Community Support
Community Support

Hi @li88li ,

 

Could you please show more about your flow?

Where is it output and an error occurs?

I have test on my side, when I choose 'Message body content' as the output, it displays fine.

vchenzhi_0-1638153254604.png

vchenzhi_1-1638153288588.png

 

 

Best Regards,

Zhi Chen

 

 

 

li88li
Regular Visitor

Hi, 

 

I followed Reza's tutorial on weekly summary of Teams conversations step by step. My flow looks like: 

 Zajeta slika.JPG

Since the email forwarding doesn't work in my case I used Post message in final step. Therefore I can also loose list group members, select 1 and join 1 as well. But the outcome is the same even if I do(below) - a lot of blank messages in the output.

 

Zajeta slika2.JPG

v-chenzhi
Community Support
Community Support

Hi @li88li ,

 

In this 'Get message' action, there are several possibilities for the output to be empty:

1. Deleted message.

2. Unsupported content, such as 'Post message in a chat or channel', when retrieved by get message again, the display is empty.

I suggest you limit the message content to text and filter messages with empty content.

Please try the following workaround If it helps.

Edit the Filter array in advanced mode.

vchenzhi_0-1638173708120.png

@and(and(not(equals(item()?['body/content'], '')),equals(item()?['body/contentType'], 'text')),equals(item()?['body/contentType'], 'text'))

 

 

Best Regards,

Zhi Chen

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (968)