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 Automate / How to send message to...
Power Automate
Unanswered

How to send message to MS Teams user on PAD

(0) ShareShare
ReportReport
Posted on by 35

This is my PAD flow so far, which creates an Excel file for each user and I want it to send a Teams message to each user individually with the Excel file as an attachment, but not sure how to do the latter part:

SET users TO $'''John Smith
Mary Jane
Jane Doe
Frank Smith'''
Text.SplitText.Split Text: users StandardDelimiter: Text.StandardDelimiter.NewLine DelimiterTimes: 1 Result=> userlist
LOOP FOREACH CurrentUser IN userlist
 Excel.LaunchExcel.LaunchUnderExistingProcess Visible: True Instance=> ExcelInstance
 Excel.SaveExcel.SaveAs Instance: ExcelInstance DocumentFormat: Excel.ExcelFormat.OpenXmlWorkbook DocumentPath: $'''C:\\Users\\kc\\Documents\\%CurrentUser%'''
 Web.InvokeWebService.InvokeWebService Url: `` Method: Web.Method.Get Accept: $'''application/xml''' ContentType: $'''application/xml''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: True UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False ResponseHeaders=> WebServiceResponseHeaders Response=> WebServiceResponse StatusCode=> StatusCode
END

 

Screenshot 2023-05-09 122057.jpg

Screenshot 2023-05-09 122057.jpg
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @kc_fc 

     

    You have to use this api to post messages in teams 

     

    https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

     

     

    Hope it helps !

     

    Mark it as solution if it resolves your query !

     

  • jp_fc Profile Picture
    35 on at

    I can't find this in any of the options in PAD. Which menu is it in?

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    It is not any option in PAD. You have to use this API in invoke web service to post messages in teams 

     

    Or

     

    your flow can be done in cloud flow, may be you can try that way , in that you can use action to post message in teams easily using teams connectors 🙂

     

  • jp_fc Profile Picture
    35 on at

    Where can I find the URL to use this API to invoke web service?

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard