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."

@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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,922)