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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,567)