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
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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,792)