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

Trying to use a button to update several fields

Capture.PNG

Tryying to update several fields when a button is clicked. all is working besides the lookup field of the table. for this record looking to a primary key of the other table wont let me put that primary key in. it says "Record expected" what is this "Record"?

1 REPLY 1
Community Support
Community Support

Hi amarion,

 

To test this issue, I create an app based on SharePoint list, then I use the UpdateIf function to update several fields to data source.

 

The function I am using is:

UpdateIf(ListB,ID=BrowseGallery1.Selected.ID,{Title: DataCardValue15.Text,bpsf:Value(DataCardValue9.Text)})

 

Not sure with the column type of “SubstationsID”. If it is a Number column type, please use a Value function to convert a string of text to a number.

 

Please see more details about Value function at here:
https://powerapps.microsoft.com/en-us/tutorials/function-value/

 

And about the column name, we shouldn’t use the Column name we have specified in the list, with the form selected, click the highlighted ellipsis, then you would get the valid field name. We should use this field name in the function.

4.PNG


Best regards,
Mabel Mao

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

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Top Solution Authors
Top Kudoed Authors
Users online (46,623)