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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (52,694)