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 from another dat...
Power Apps
Unanswered

Patch from another database to another

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I got 2 galleries in my app with 2 different databases.

 

From Database1 i'm trying to patch an column to DataBase2. Those columns have the exact same options in it. Its a choice fields in an sharepoint list.

 

In DateBase1 i put this in on a dropdown function "OnChange" but doesnt seem to work:

Patch('Database2'; ThisItem; {Status: Dropdown3.Selected})

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Choices fields must be patched in a special way like this:

     

    Patch('Database2'; LookUp('Database2', ID=ThisItem.ID); {Status: {Value: Dropdown3.Selected}})

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mdevaney Hello and thanks for the replay.

     

    I get this error when i'm trying your code:

     

    The Patch function has some invalid arguments. Invalid argument type.

    A record value was expected, but from a different schedule. Incompatible type.

    The Value column in the data source you are updating expects a Text type and you are using a Record type.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Try these

    Patch('Database2'; LookUp('Database2', ID=ThisItem.ID); {Status: {Value: Dropdown3.Selected.Value}})
    Patch('Database2'; LookUp('Database2', ID=ThisItem.ID); {Status: Dropdown3.Selected.Value})

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard