cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
simdantra
Frequent Visitor

Post message to channel V3 confirmation

Hi,

I'm using PowerApps to post a message to a Teams Channel that is working fine most of the time.

Is there a way to confirm when a message is posted?

I read the Microsoft teams document, and supposedly there is a result of message id when the message is posted.

If this is so, how do I access this?

If not how can I confirm the post is successful?

Thanks 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

@simdantra 

I believe you can do this by calling the Teams connector and storing the result inside of a SET variable.

Set(varPostMessage,PostMessageToChannelV3(group_id, channel_id, content));

 

After that you could test whether there was a message posted by checking if the 'id' property ISBLANK.

If(IsBlank(varPostMessage.id), true_condition, false_condition);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

4 REPLIES 4
mdevaney
Super User
Super User

@simdantra 

I believe you can do this by calling the Teams connector and storing the result inside of a SET variable.

Set(varPostMessage,PostMessageToChannelV3(group_id, channel_id, content));

 

After that you could test whether there was a message posted by checking if the 'id' property ISBLANK.

If(IsBlank(varPostMessage.id), true_condition, false_condition);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@mdevaney    Thankyou. That worked great.
Just before I accept as solution, if you don't mind, I have a similar question.

I tried doing the same thing with a "Set(varSharePointListMsg,(collect(SharePointList,Collection))", but the result is data type = table and no matter which sub unit I used with it ( eg varSharePointListMsg.ID)  they were all data type = table.

How do I go about confirming this?

 

 

@simdantra
In that case you’ll want to use ISEMPTY to test the table rather than ISBLANK

@mdevaneyThanks again.

 

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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