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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Text input not patchin...
Power Apps
Answered

Text input not patching to SP list (issue with patch formula)

(1) ShareShare
ReportReport
Posted on by 312

I am having trouble patching text to a column in a sharepoint list. My list is called 'Program Planning Test'. The column I want to patch to is a single line of text column called 'JE A1 Season.' The text field I want to patch is in a custom card (with othet text input fields). The control is called txtJEA1 and the Default property is set to LookUp('Program Planning Test', ID = varRecord.ID, 'JE A1 Season') (It is showing text that is already in the column). 

 

I am trying to patch from a Submit button using the formula below (I am using the variable varRecord to show a record across forms). 

Patch( 'Program Planning Test', ID = varRecord.ID, 'JE A1 Season', { 'JE A1 Season': txtJEA1.Text })

 

Can anyone advise me on how to update the formula (or anything else) so the text entered in txtJEA1 populates the column JE A1 Season when I submit the form? 

 

Many thanks! 

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at

    Hi @KBeale (again :)),

     

    Try code similar to the following to update an existing record:

    Patch('Program Planning Test',
     LookUp('Program Planning Test', ID = varRecord.ID),
     {
     'JE A1 Season': txtJEA1.Text
     }
    );

     

    Patch function reference: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • KBeale Profile Picture
    312 on at

    Thank you! (Again!) And thank you also for the link... I clearly need to spend some time getting more familiar with the patch function 😉 

  • KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at

    My pleasure! We've all been there, practice makes perfect 🙂


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard