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 Apps / Automatically update l...
Power Apps
Answered

Automatically update label with API data in Component Factory

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I'm currently in a team that's building front-end solution with Power Apps for the first time. Because of collaboration reasons we're using Component Factory, so we can work on different functionality at the same time.

 

So, right now I'm calling the REST service with the function: ClearCollect(HumidityData, getNewestHumidityData.Run()). This is nice and all because the needed API data is displayed in a label, but as of now it's implemented in a way that it works only when something is clicked. 

 

My question is - how do I call this function and update a label with the response data without clicking anywhere? And once this is achieved I want to keep updating this label real-time every time new data comes in from the API. Keep in mind that I'm doing this in Component Factory so there is no App module which functions can be called. 

 

Any suggestions?

Categories:
I have the same question (0)
  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    you can call the API on Screen Load.

    Set(HumidityData, getNewestHumidityData.Run());


    Click on Screen and Go to OnVisioble Properties and Place the above code 
     

    VijayTailor_0-1600888265137.png

    Or On On AppLoad you can also use the Same code and assign the Same to Label
    For On APP Load Click on APP and OnSatart Property Place the above code.



    and Assign "HumidityData" variable to label .

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


     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard