Hi,
I am new to PowerApps. I have created a powerapp's by connecting to sql server.
My query is, I need to record the timestamp and userid when they update the data through the apps.
When they select the submit form, it should record the timestamp and user id and save it database.
I have herewith attached a screenshot containing the columns name in the database.
Solved! Go to Solution.
Since you are already using a form, I suggest you add 2 Datacards for the Time stamp and the user ID.
In the Default of the Datacardvalue of the UserId : User().Email
In the Default of the Datacardvalue of the Time stamp put the variable name: TimeNow
Finally on the submit Icon, create a variable before submit form as;
Set(TimeNow,Text(Now(),"hh:mm:ss"));SubmitForm(YourFormName)
Thus before the Form is submitted, it create the current time to be submitted.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Since you are already using a form, I suggest you add 2 Datacards for the Time stamp and the user ID.
In the Default of the Datacardvalue of the UserId : User().Email
In the Default of the Datacardvalue of the Time stamp put the variable name: TimeNow
Finally on the submit Icon, create a variable before submit form as;
Set(TimeNow,Text(Now(),"hh:mm:ss"));SubmitForm(YourFormName)
Thus before the Form is submitted, it create the current time to be submitted.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
204 | |
180 | |
62 | |
32 | |
30 |
User | Count |
---|---|
324 | |
270 | |
104 | |
74 | |
56 |