cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
amarion
Level: Powered On

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 Team
Community Support Team

Re: Trying to use a button to update several fields

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 Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,526)