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
Highlighted
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
Highlighted
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.
Highlighted
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."

 

 
 
Highlighted
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

Highlighted
Anonymous
Not applicable

Re: Update Function Help

@RandyHayesthanks man, its help me a lot.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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