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!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

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.

Users online (2,978)