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 / how to patch only one ...
Power Apps
Answered

how to patch only one column data into SP existing list? - need help

(0) ShareShare
ReportReport
Posted on by 1,994

Hi

 

I want to only update one column - Number field into existing SP list record how to patch it?

 

 

1) User input eg Product number - how to set when they click enter it auto show in the gallery ?  Now I input the number I have to click the arrow icon to display

 

2) #2 is a form I need the user to input in the Number 

 

3) How to update the number datacard1 into its existing record in SP list without overwrite others?  I try 

patch(SP list, LookUp(SP list,  varRecord (' Number': datacard1.Text}))  - not working

my gallery is set as varRecord

1.PNG

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

    Hi @bbsin :

    Could you tell me:

    • What is varRecord ?

    The error I found so far is the syntax error of the formula.The correct syntax is

     

    Patch( DataSource, BaseRecord, ChangeRecord)

     

    Maybe you could try this formula:

     

    patch(
     SPlist, 
     LookUp(SPlist,'Number'=YourSearchBox.Text ), /*Find the record to be updated*/
     {'Number': datacard1.Text}
    ) 

     

     Best Regards,

    Bof

  • bbsin Profile Picture
    1,994 on at

    Hi Bof

     

    Great it is working .. Thanks

  • bbsin Profile Picture
    1,994 on at

    Hi Bof

     

    one question  how to refresh all the fields to  blank once it click update a pop to show success?  Thanks

  • bbsin Profile Picture
    1,994 on at

    Hi @v-bofeng-msft 

    Hi 

     

    Like to check with you 

    I use the patch syntax on another screen this time bit different and it's not updating the column into the record.


    Can kindly advise what is wrong>

     

    I am search descp to sow in the gallery and want to input the numbers to update into SP by the record found

     

    Patch(
    'SP list',
    LookUp('SP list', Update Number= SearchBox.Text),
    {Update Number: Update Numberdatacard.Text}
    )

     

    it's not working

     

     

    Also one question how to disable the input text box but reflect n updated numbers when  search exg Workshop a list of workshop will appear??

    1.PNG

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

    Hi @bbsin :

    May be you could try:

     

    Patch(
    'SP list',
    LookUp('SP list', 'Update Number'= SearchBox.Text),
    {'Update Number': 'YourTextInputControl'.Text}
    )

     

    Best Regards,

    Bof

     

  • bbsin Profile Picture
    1,994 on at

    Hi @v-bofeng-msft 

     

    I did what you have mentioned.  But it's not pickup into SP list did I input somewhere wrongly?

    am searching by details in the search box and want to patch the POno. of the same record.  thanks.

     

    Patch(
    'list',
    LookUp('List', PONo = tbSearchPoN.Text),
    {PONo: PONoInput.Text}
    )

     

    1.PNG

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard