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 / Need to build an app w...
Power Apps
Answered

Need to build an app which earn points

(0) ShareShare
ReportReport
Posted on by 599
I need to build an app which has a button, when clicked earn 5 points everyday. User can click only once per day and earn 5 points. These points should be stored in sharepoint backend.
 
This app should be hosted in a sharepoint online site, where the above powerapp should load as a popup on loading of the sharepoint homepage. May i know how to achieve this?
I have the same question (0)
  • RobElliott Profile Picture
    10,456 Super User 2026 Season 1 on at
    You won't be able to have it opening as a popup when the SharePoint site loads, it will need to be a Power Apps web part embedded in the homepage.

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.
    Principal Consultant, Power Platform, WSP Global (and classic 1967 Morris Traveller driver)
  • Suggested answer
    11manish Profile Picture
    1,271 on at
    To build a daily reward app using Microsoft Power Apps and SharePoint Online:
    Points Logic
    Store data in a SharePoint list (User, Points, LastClaimDate)
    On button click:
    • Add 5 points if not claimed today
    • Block if already claimed
    Disable button after daily claim

    App Hosting
    • Embed app using Power Apps Web Part in SharePoint
    • Simulate popup inside app using variables
    • For real popup → use SPFx (advanced)
  • Suggested answer
    Vish WR Profile Picture
    807 on at
    Hi,
    If having  a pop-up as a key requirement, from SharePoint Online, you can't open it as a pop-up, maybe have a button in the SharePoint page with a link to open the Power App in a new window ( though it will open the Power App service to open the app )
     
    If you want a seamless experience, I would recommend building with SPFx.
     
    Tip: if the transaction volume is not huge, SharePoint as a data layer is fine; if the transaction volume is higher, I would recommend using Dataverse 

    Reach out to me if you want more clarification or features for building a reward system 
     
     
     
      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     
     
     
  • Verified answer
    RobElliott Profile Picture
    10,456 Super User 2026 Season 1 on at
    @Iantaylor2050  I did a quick mockup of an app to collect the points. When going into the app for the first time today this is what the user sees.
     
    The App OnStart is ClearCollect(colPoints, '5Points')
     
    The DisplayMode for the button is currently edit as this user hasn't clicked the button today. 

     
    The DisplayMode property is as follows:
     
    If(!IsEmpty(
        Filter(colPoints, And(Submitted = Today(), Title=User().Email))),
    DisplayMode.Disabled, DisplayMode.Edit
    )
    
    But when the user clicks the button the patch function saves the record to the SharePoint list, collects the collection again, sets the DisplayMode of the button to Disabled and adds a message that the user has collected points today.
     
    The OnSelect of the button is:
     
     IfError(
     Patch('5Points',
        Defaults('5Points'),
        {
            Title: User().Email,
            Submitted: Today(),
            Points: 5
        }
        );
    Refresh('5Points');
    ClearCollect(colPoints, '5Points'),
    Notify("The points could not be saved, please try later", NotificationType.Error, 3000),
    Notify("Points saved", NotificationType.Success, 3000))
     
     
     
    The gallery only displays the current user's points with: 
    Sort(Filter(colPoints, Title=User().Email), Submitted, SortOrder.Descending)

    And I've added a total with: 
    "Total: "&Sum(galPoints.AllItems, Points)&" points".
     
    The SharePoint list is as follows:

     
    Then, as I mentioned before, add the Power Apps web part to the SharePoint page.
     
    Hope that helps.

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.
    Principal Consultant, Power Platform, WSP Global (and classic 1967 Morris Traveller driver)

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 510

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 281

Last 30 days Overall leaderboard