cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FENGYANG
Helper III
Helper III

Patch

I have a list , named "Application Form";

 

I want to update the field of "Status" in the form to "Completed" by clicking a button;

 

How should I write the code with Patch.

FENGYANG_0-1664371118523.png

 

 
 
1 ACCEPTED SOLUTION

Accepted Solutions

Can you try this @FENGYANG 

Patch(
    'Application Form',
    LookUp('Application Form', ID=int(DataCardValue6.Text)),
    {
        Status: {Value: "Completed"}
    }
)

This is a great reference page

View solution in original post

5 REPLIES 5
FENGYANG
Helper III
Helper III

I want to update the field of "Status" in the resource(Application Form List)  to "Completed" by clicking a button;

Patch('Application Form', LookUp( 'Application Form', ID = Int(DataCardValue6.Text)) ,{Status:"Completed"})

 

FENGYANG_0-1664372957694.png

 

the type of the field of "Status" is option

Can you try this @FENGYANG 

Patch(
    'Application Form',
    LookUp('Application Form', ID=int(DataCardValue6.Text)),
    {
        Status: {Value: "Completed"}
    }
)

This is a great reference page

Great,

have solved,

You've been a big help ,thank you very much

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,873)