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 / Pub-Sub in Canvas App ...
Power Apps
Answered

Pub-Sub in Canvas App - refresh page based on an event

(5) ShareShare
ReportReport
Posted on by 18

Can the PowerApp receive a notification from a web service (called from an API) and refresh a specific page based on the information received)?

There are multiple ways in theory, but which ones are supported by Powerapps? Polling? Webhhoook? Websocket? MQTT? Make a new custom component with PCF? 

I have the same question (0)
  • nmk Profile Picture
    193 on at

    Which backend system you are talking about? Is it dataverse or any other system. What is that backend system support if that's not a dataverse.

  • Thmit Profile Picture
    18 on at

    Hi nmk, 

    Not Dataverse. It comes froma web service (called from an API)

  • nmk Profile Picture
    193 on at

    So in this case, is this not dependent on what the other systems will provide you. You just need to consume it in the canvas app. I am really not sure if it's possible coz you need to use javascript in order to consume it and the only thing that comes to mind is to use PCF for canvas app. 

    Please give it a try.

  • Thmit Profile Picture
    18 on at

    Thank you, nmk. 

    Can we use custom connector on this?

    I notice that we cannot access the Trigger request on CanvasApp, but we can use the Trigger in PowerAutomate.

     

    Furthermore, is there a roadmap regarding this ?

    Thanks!

  • nmk Profile Picture
    193 on at

    Yes, PCF for canvas apps is available. I haven't tried that out yet and it's still in preview.

     

    More from the docs site:

    https://docs.microsoft.com/en-us/power-platform-release-plan/2019wave2/microsoft-powerapps/component-framework-canvas-apps

  • Thmit Profile Picture
    18 on at

    I meant CustomConnector not CustomComponent. 

     

    We can create CustomConnector(from a certain RESTAPI) and specify the trigger as a webhook. 

    However, it is not possible to access this Webhook Trigger in CanvasApp. 

    Any thought?

  • FlorianGrimm Profile Picture
    21 on at

    You can use a websocket e.g. SignalR.

    What I don't know is how you authenticate against the websocket service.
    If you are transport only messages ids that have no meaning .e.g {id =5; action=haschanged}, and then reload the data - it might work for you.

    If a pcf control (given the url via parameter) open the websocket and if a event is received calling the notifyOutputChanged() that triggers the reload it might work.

    Sorry for all the mights...

     

    cu Flori

  • nmk Profile Picture
    193 on at

    Hi @Thmit 

    I am not sure what are we trying to do here? You mentioned in the original post that you want to refresh the page based on a trigger from some server. e.g. a realtime dashboard. and in my view, it may be only possible via creating a custom pcf component. I don't know what is your server using to send out the notification? is it webhook or something else? 
    I think you need to try out the concept and see how it goes







     

     

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I did a similar think as PoC work; Power Apps Canvas model app. will be accessed from some users PC's which have a local peripheral devices. Local web socket server streams data to Power App within PCF.

    Notifying output properties within a stream solves my requirement.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard