web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Weird behavior with Po...
Power Apps
Unanswered

Weird behavior with PostMessageToChannelV3() PowerApps function and attachments on a form

(0) ShareShare
ReportReport
Posted on by

I have a simple edit form in my PowerApp

 

flyfreedom_0-1613606207582.png

 

The checkmark icon at the top right is used to save the form, and it has the following code:

 

SubmitForm(ActivityEditForm);
MicrosoftTeams.PostMessageToChannelV3("a8645...", "19:557...",
{
content: "<b>Company: </b>" & ActivityEditForm.LastSubmit.VmoCompany.Name &
"<br/><b>Date: </b>" & Text(ActivityEditForm.LastSubmit.ActivityDate, DateTimeFormat.ShortDate) &
"<br/><b>Activity Type: </b>" & ActivityEditForm.LastSubmit.ActivityType &
"<br/><b>Variants: </b>" & Concat(ActivityEditForm.LastSubmit.ActivityVariants.Value,Concatenate(", ",Text(Value))) &
"<br/><b>Summary: </b>" & ActivityEditForm.LastSubmit.ActivitySummary
//"<br/><b>Attachments: </b>" & Concat(ActivityEditForm.LastSubmit.Attachments.DisplayName,Concatenate(", ",Text(DisplayName)))
,
contentType: "html"
},
{
subject: "Update from CRM"
});

 

When I don't add any attachments to the form, everything works fine when I save the record and the message is successfully posted to Teams:

 

flyfreedom_2-1613606366931.png

 

When I create a new record with the only difference being that there is an attachment on the form then the Teams post has blank values for all my choice fields:

 

flyfreedom_3-1613606480910.png

 

Not sure why the inclusion of attachments on the form (which are not posted to Teams) would cause all choice values to appear as blank in the teams post?

 

Has anyone experienced this issue? Is there something I can change in my code to fix this? 

 

Thanks in advance for any help!

 

 

 

 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard