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

Adding items to a SharePoint List

Hi guys, 

I know there are a lot of people asking for help with this sort of thing and I have gone through alot of the posts and tried them already hence why I have come here to post. 


I have a form (PowerApps Phone) like below

 Annotation 2019-06-25 123902.png

The add button (btnAdd) has a command behind it when they click it (OnSelect). This is where I am running into issues. I want to push whats in the text boxes into a SharePoint List which has the following fields (Title, Brand, Model, Serial, Asset). 

 

The code I have: Patch('Tech-Bench Items', Defaults('Tech-Bench Items'), Title:lblJobID,Brand:txtBrand,Model:txtModel,Asset:txtAsset})

 

lblJobID is gotten form the previous Screen of the app that takes customer details.


When I click Add I get the little red X in a circle which states "An unkonw error occurred". 
I have been at this since 9am this morning and dont want to let it beat me.

Thanks for your help in advanced. 

1 ACCEPTED SOLUTION

Accepted Solutions
Fusion
Frequent Visitor

And after some time looking at it I found out why it was not working. 


The code I was using did not have .Text after each of the items, once I put that in everything worked. 

View solution in original post

1 REPLY 1
Fusion
Frequent Visitor

And after some time looking at it I found out why it was not working. 


The code I was using did not have .Text after each of the items, once I put that in everything worked. 

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

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 (88,117)