cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Update Function Help

Hey Guys, i need update a row in a excel file with update function, but when i try to update appears the message "__PowerAppsId__:Campo obrigatório"

 

Here is my code:

 

Update( Credential;
First( Filter( Credential; Username = InputUser2.Text) ); {Username: InputUser2.Text; Password: InputNewPassword.Text})

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

Sorry - typo!

 

Patch(Credential;
           Lookup(Credential; Username = InputUser2.Text);
           {
             Username: InputUser2.Text; 
             Password: InputNewPassword.Text
           }
     )
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

4 REPLIES 4
Super User III
Super User III

@Anonymous 

The Update function will update an entire record, and as such, will require all fields be supplied.

You might want to consider changing to the Patch function for this:

 

Patch(Credential;
           Lookup(Credential; Username = InputUser2.Text) );
           {
Username: InputUser2.Text; Password: InputNewPassword.Text } )

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
Anonymous
Not applicable

@RandyHayesI try to use your code but appears the message " Unexpected Characters. Characters are used in the formula unexpectedly."

 

 
 

@Anonymous 

Sorry - typo!

 

Patch(Credential;
           Lookup(Credential; Username = InputUser2.Text);
           {
             Username: InputUser2.Text; 
             Password: InputNewPassword.Text
           }
     )
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Anonymous
Not applicable

@RandyHayesthanks man, its help me a lot.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,103)