cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
julianhoewel_95
Helper II
Helper II

Variable which is incremented whenever a (different) user presses a button, but not resetted after closing the App

Hey guys,

 

in my project I want to have a variable which is incremented everytime someone presses a button. This variable is supposed to be the ID for an performance record which is transfered to Flow. I already tried it with a counter but its resetted everytime I close the App... 
The ID has to be incremented whenever User presses a button and hte data is transfered to Flow.
Or is it maybe better to define such a variable in Flow an increment it whenever the flow is activated?

Any Idea how to do this?

Thanks in advance!
Julian

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

You are going to have to have a datasource somewhere where you store the value.  There is no way to maintain a variable when you exit the app. 

 

You could try using SaveData and LoadData, but those won't work if the app is ever run in a web browser.  So I doubt that will solve the issue.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

You are going to have to have a datasource somewhere where you store the value.  There is no way to maintain a variable when you exit the app. 

 

You could try using SaveData and LoadData, but those won't work if the app is ever run in a web browser.  So I doubt that will solve the issue.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (40,488)