cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alaina
New Member

Button clicking with data collection

I'm new to Powerapps and here for help. I'm trying to create an app when clicking on a button, then it will navigate to the next screen, and at the same time, collect data and save it to a list. How to do this? Alaina
1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi Alaina,

 

First, you need to create a connection to your database, selecting the table that you want to the information to be saved to. Add a button, and set the OnSelect property. ; can be used to perform multiple actions. Use the formula similar like below: 

Collect(Table, { Name: User().FullName, Email: User().Email }); Navigate(Screen, ScreenTransition.Fade)

 

If you want to get more user information than just name and email, you can also add a connection to Office 365.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Alaina
New Member

Actually it is not a list but I want to save the user information to a table
v-monli-msft
Community Support
Community Support

Hi Alaina,

 

First, you need to create a connection to your database, selecting the table that you want to the information to be saved to. Add a button, and set the OnSelect property. ; can be used to perform multiple actions. Use the formula similar like below: 

Collect(Table, { Name: User().FullName, Email: User().Email }); Navigate(Screen, ScreenTransition.Fade)

 

If you want to get more user information than just name and email, you can also add a connection to Office 365.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you Mona that worked!

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (56,964)