cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hemasai
Frequent Visitor

How to write formula to update values provided in canvas via textbox to excell

Hi,

Request to help

3 REPLIES 3
Jacky_Shen
Resolver IV
Resolver IV

Hi @Hemasai ,

 

If your Excel file is connected as a data source of the Power Apps canvas, using SubmitForm can save the information back to Excel (including adding new record and editing existing record); and the textbox might be one of your columns.

v-jefferni
Community Support
Community Support

Hi @Hemasai ,

 

Assuming that you are working on an editable table, the way to submit data to Excel table depends on your scenario:

1\ If you would like to submit data on record level, that means once created a record the user should submit it, you should add a save button/icon in the gallery item. 

 

2\ If you would like to submit the whole table/collection to data table, you will need to add a separate save button out of the Gallery. Video and blog below would be helpful:

https://www.youtube.com/watch?v=mj4mKS1hS7M

https://www.sharepointsiren.com/2020/09/power-apps-editable-table/

&

https://powerapps.microsoft.com/en-us/blog/editable-tables/

 

Based on your screenshot, it looks like the scenario in the last blog is more likely as in yours.

So I think your formula could be:

Patch(Table1,Defaults(Table1),{EmpID:TextInput2.Text})

This would add a new row to the data table.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @Hemasai ,

 

Have you resolved the issue? 

If above post helps, then please consider Accept it as the solution to help the other members find it.


Best regards,
Community Support Team _ Jeffer Ni

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,916)