cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jean-Christophe
Advocate II
Advocate II

User Presence in Teams, use it in PowerApp

Hello,

 

I would like to use the User Presence in a powerApp.

 

How can I get this status ( Available, Out of Office, Busy, Busy In a call ... ).

 

How can be notified of changes ?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

@Jean-Christophe 

This announcement about presence might be something to watch.

 

Microsoft Graph presence APIs are now available in public preview

https://developer.microsoft.com/en-us/graph/blogs/microsoft-graph-presence-apis-are-now-available-in...

 

---
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

14 REPLIES 14
Jean-Christophe
Advocate II
Advocate II

Smiley Frustrated

 

Really no one knows ? Or really not possible ?

Anonymous
Not applicable

Hi @Jean-Christophe thanks for posting in the community. Review the below link and let me know if you can customize it to answer your question:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-current-user 

 

@Anonymous 

He is asking for user presence in Teams, try to understand the question before answering anything.

Actually, the issue is that User() PowerApp function doesn't provide any PRESENCE information.

@Jean-Christophe 

This announcement about presence might be something to watch.

 

Microsoft Graph presence APIs are now available in public preview

https://developer.microsoft.com/en-us/graph/blogs/microsoft-graph-presence-apis-are-now-available-in...

 

---
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."

joeinmay
Resolver II
Resolver II

How is this called SOLVED ?

 

Anonymous
Not applicable

Until User().Presence is listed in the User function properties on the https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user page, I don't think it will be possible. I would love to see this functionality. 

jamilhaddadin12
Regular Visitor

The question is clear to me. The link posted should solve it. I am curious to understand why you believe this does not answer the question?
I simple words, you can call this rest API and pass any ID and get the presence status of the user (the current user or any user)

https://graph.microsoft.com/v1.0/communications/getPresencesByUserId

look into this link https://docs.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http
GET /me/presence
GET /users/{id}/presence
GET /communications/presences


https://docs.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-1.0
The return value is of "presence" type & should be one of those values

AvailableIdleAwayBeRightBackBusyBusyIdleDoNotDisturbOfflinePresenceUnknown

Jean-Christophe
Advocate II
Advocate II

This GET presence with Graph API.

The question was (also) about notification User Presence in a PowerApp.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,629)