web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch a Field on the c...
Power Apps
Answered

Patch a Field on the current record in a Form (Sharepoint List)

(0) ShareShare
ReportReport
Posted on by 73

Hi all,

 

I am a bit new to the patch function and I basically have a form (called Form1😞

- Sharepoint List called RRF

- Field i need to update is called 'RRF Status

- ID of the list is called 'RRF ID

 

how do i: Patch('RRF' lookup the current record on form based on RRF ID, and update the RRF Status field with this text: "RRF Complete")

 

any help would be appreciated 🙂

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @kriscachia ,

     

    I assume that the RRF Status is text column.

    About how to update data in Item of Form to List:

    OnSelect of a button:
    SubmitForm(FormName)

    Or

    Patch(ListName,LookUp(ListName,'RRF ID'=Form.Updates.'RRF ID'),{'RRF Status':"RRF Complete"})

     

    Best regards,

    Rimmon

  • kriscachia Profile Picture
    73 on at

     

    Hi v-mengmli-msft 

     

    Thanks for your reply. 

     

    I put the patch command on the select of a button and it worked, The RRF Status is showing As RRF Complete

     

    However for some reasons when i Submit(Form1) to save the data, its clearing out the RRF Complete and blanks it out. 

    The RRF Status field has Parent.Default setting. I dont know if thats correct. Maybe its causing the value to be blanked on save?

     

    Any ideas

     

    cheers

     

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @kriscachia ,

     

    Do you mean that data in Form display when you submit the form? This may have something to do with the settings of your Form and DataCard. Please check the mode of Form is "Edit".

    If my previous answer worked for you, I hope you can accept it as a solution.😊

     

    Thanks.

    Rimmon

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard