Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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? 

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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.

  • nmk Profile Picture
    193 on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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







     

     

     

     

  • FlorianGrimm Profile Picture
    21 on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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

  • Thmit Profile Picture
    18 on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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?

  • nmk Profile Picture
    193 on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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
    Re: Pub-Sub in Canvas App - refresh page based on an event

    Hi nmk, 

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

  • nmk Profile Picture
    193 on at
    Re: Pub-Sub in Canvas App - refresh page based on an event

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard