cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User
Super User

Re: Update Function Help

@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.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Update Function Help

@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.
Anonymous
Not applicable

Re: Update Function Help

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

 

 
 
Super User
Super User

Re: Update Function Help

@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.

View solution in original post

Anonymous
Not applicable

Re: Update Function Help

@RandyHayesthanks man, its help me a lot.

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,162)