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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapp create Micros...
Power Apps
Unanswered

Powerapp create Microsoft team chat

(0) ShareShare
ReportReport
Posted on by 57

I am in the middle of creating visitor management app and when user check-in from the app, I would like to create button to notify people (Office 365) via Teams chat. Would this possible? 

Senario is

  1. Welcome screen - user check in. User need to identify who they are visiting which is in office365 list
    Choices([@'sharepoint_datasource''].PersonVisit)
    Screen Shot 2022-10-17 at 1.57.38 PM.png
  2. I would like to create button
    1. Once button is clicked, can Choices([@'sharepoint_datasource''].PersonVisit) be notified from Microsoft Teams chat?

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @ArnoldB ,

     

    You can do it with Power Automate.

    I made a sample for you.

    Create a comboBox and a button where the user can choose who to access.

    vxiaochenmsft_0-1666077009709.png

    Create a flow that can post messages in chat.

    vxiaochenmsft_1-1666077031411.png

    Add flow to the app and set the OnSelect property of Button as follows:

    Create a global variable ‘Person’ with the email address of the user selected in the combobox, and bring ‘Person’ into the flow to

    vxiaochenmsft_2-1666077231498.png

    vxiaochenmsft_3-1666077278382.png

     

    Best Regards,

    Wearsky

  • ArnoldB Profile Picture
    57 on at

    Hi @v-xiaochen-msft 

    thanks for the solution. 

    After I connected with power automated, it seems chat is not showing on our Team site. 

    Screen Shot 2022-10-19 at 9.55.58 AM.png

    Is it because our team site is not working or because of component box is looking for Office 365 people?

    Screen Shot 2022-10-19 at 9.59.40 AM.png

  • v-xiaochen-msft Profile Picture
    on at

    Hi @ArnoldB ,

     

    Did your flow run successfully? Could you show me some screenshots of the details of the flow running history?

    Besides, do you want the user to receive the message in chat, or in the teams channel?

     

    Best Regards,

    Wearsky

  • ArnoldB Profile Picture
    57 on at

    @v-xiaochen-msft , user to receive the message in Chat would be preference. 

    I have run the flow run and it was failed.
    Screen Shot 2022-10-20 at 9.25.25 AM.png

     

     

     

     

    Below is what I built in Flow

    Screen Shot 2022-10-20 at 9.23.34 AM.png

     

     

     

    Below is what I have use in formula in PowerApp

    Screen Shot 2022-10-20 at 9.28.01 AM.png

  • v-xiaochen-msft Profile Picture
    on at

    Hi @ArnoldB ,

     

    Please remove the first semicolon, save the flow and refresh the flow in canvas.

    vxiaochenmsft_0-1666320087061.png

     

    Best Regards,

    Wearsky

  • ArnoldB Profile Picture
    57 on at

    Hello @v-xiaochen-msft 

    I did and it seems, it still have error as shown in below. 

    Screen Shot 2022-10-21 at 9.34.12 AM.png

     

    Body message

    {
    "error": {
    "code": "GraphUserDetailNotFound",
    "message": "No user details with email or UPN 'person' were found in Graph."
    }
    }
     
    Headers Messages
    {
    "Strict-Transport-Security": "max-age=15724800; includeSubDomains,max-age=31536000; includeSubDomains",
    "x-ms-islandgateway": "ga0000001",
    "x-ms-request-id": "westus:1e2affbd-de8b-43d2-ac3e-246f53fe05c1",
    "x-ms-correlation-request-id": "1e2affbd-de8b-43d2-ac3e-246f53fe05c1",
    "x-ms-flow-mobile-ios-version": "1.3.0",
    "x-ms-flow-routing-request-id": "WESTUS:20221021T153105Z:1e2affbd-de8b-43d2-ac3e-246f53fe05c1",
    "Server-Timing": "x-ms-igw-upstream-headers;dur=309.5,x-ms-igw-req-overhead;dur=0.1",
    "X-Content-Type-Options": "nosniff",
    "x-ms-service-request-id": "65537d3a-f012-4446-bee3-04795ba54a70",
    "x-ms-correlation-id": "cefc09f1-f33e-4fc9-a070-1b0a99cb8c8a",
    "x-ms-activity-vector": "00.00.IN.0L.IN.0T.IN.08.00",
    "Timing-Allow-Origin": "*",
    "x-ms-apihub-cached-response": "false",
    "x-ms-apihub-obo": "false",
    "Date": "Fri, 21 Oct 2022 15:31:05 GMT",
    "Content-Length": "145",
    "Content-Type": "application/json"
    }
  • v-xiaochen-msft Profile Picture
    on at

    Hi @ArnoldB ,

     

    In PowerApps, 'person' may be a predefined variable. Please change the name of the variable 'person' to something else.

     

    vxiaochenmsft_0-1666582593500.png

    After modification, please refresh your flow in powerapps edit mode.

     

    Best Regards,

    Wearsky

  • JohnAla Profile Picture
    15 on at

    I just did this same thing and discovered that the recipient can have no trailing semicolon, nor can it contain the email of the person running the flow. The second restriction does not seem to apply, but you should remove the trailing semicolon from the Post Message action Recipient field. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard