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 / No. of time app opens ...
Power Apps
Answered

No. of time app opens in powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I am creating an offline app. I have one feedback form and based on the number of times app open I want to show that feedback form. 

For instance- If the user is opening app for the 10th time then it should show the feedback form.

How can I achieve that? Is there any inbuilt function which tracks that?

Any help will be appreciated.

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

    Hi,

    For this Requirement.
    you can consider the below approach.

    Create a Column where you Storing your Data.
    Like Below
    AppUsedCount =0

    and On App -> OnStart Properties can Increase the value by +1
    and Use below condition for the display Feedback form 

    //Get the Count and decide the Form need to display or not
    Set(NeedtoDisplayFeedbackForm,if(AppUsedCount>=10,true),false);


    Add the Feedback form on which screen you want.
    And Set the Visible properties for the form is - NeedtoDisplayFeedbackForm.

    That all 🙂

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

    Please Vote for my idea if you feel, that will help you in the future or good to have in power app.
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/694921

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tablet-Vertical/idi-p/694891



  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VijayTailor ,
    Thanks for the reply, Can you please tell me the code of how and where to create the column and increment that. I have tried somewhat similar using collection but it didn't work.

    Rest part I understood

     

  • Vijay Tailor Profile Picture
    2,961 on at
    Please mentioned your DataSouce
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VijayTailor ,

    Datasource is CDS. Also is there any way of achieving that without touching datasource?

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    if you don't want to touch the Datasource then you can achieve this functionality by using Excel DataSource Online/Import from Excel. Connector.

    That file Only contains the App the UserEmail and AppUserCount Field.

    Thanks,

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

    Please vote for my idea if you feel, that will help you in the future or good to have in power app.
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/694921

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tablet-Vertical/idi-p/694891





     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VijayTailor ,
    So there is no way I can do it in powerapps only? not using datasource I mean. Also, If i use CDS - there I need to create one column in any entity which i am using ? and how can I fetch that ?
    Can you please show me how can i do that?

  • Verified answer
    rsaikrishna Profile Picture
    3,703 Microsoft Employee on at

    @Anonymous 

     

    Who are the users of this functionality? I am assuming the users are going to use a device but not the browser for Offline capability.

     

    As you are designing your app for Offline and Online usage, you can use LoadData() and SaveData() functions to achieve the desired result.

     

    On App Start, call the function LoadData for a collection colAppOpenCount. If the collection is empty, then collect the timestamp into it and call SaveData() to save it in the local cache of the device.

     

    When you open the app next time, read from the cache with LoadData function and check collect count value. If it reaches 10, then show the feedback form. With this approach, you will also have the Time Stamp of the user when he opened the app every time.

     

    Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps#:~:text=When%20you%20build%20a%20canvas,basic%20data%20storage%20when%20offline.

    NoteThe LoadData and SaveData functions might show an error in Power Apps Studio because browsers don't support them. However, they'll perform normally after you deploy this app to a device.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @rsaikrishna ,
    Thanks for the reply,

    It worked

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @rsaikrishna and @VijayTailor ,
    I am using collection to collect time stamp and checking if countrows of collection>10 then navigate to feedback form. but issue is it is navigating every 11th time But  I need only once. How can I achieve that?

    Any help is appreciated

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Anonymous ,


    It simply gives the specific condition as if the timestamp count is equal to 11 then only display the form.

    then the form is displayed always when the count is 11. ,

    collection=10 || collection=15



    Another point as per my understanding - if the user does not field the feedback form and again you want to display the form then use OR condition like timestamp count is equal to 11 or equal 15 then only display the form.

    Thanks,
    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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard