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 / Update 2 Tables in a C...
Power Apps
Unanswered

Update 2 Tables in a Canva app

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

Currently in my Canvas App, there is these 2 screens:

AsheshR_0-1710847867554.png

This form shows filtered data from Animals table.

 

AsheshR_1-1710847909588.png

 

The submit button has this code:

SubmitForm(frmFamilyFoster)
which updates another Table.
 
 
what code should the button include so that it updates the animal record as following:

Step 1: User is required to enter following fields and these will be saved in foster family information Table.

 

  1. FosterClaimerName
  2. FosterLocation
  3. JoinDate
  4. Shelter Lookup value from selected Animal
     
     

    Step 2: update selected animal record as followings

     

    1. 'Foster Claimer' field in the Animal record will be lookup value of foster family saved in step 1AsheshR_2-1710848510783.png
Categories:
I have the same question (0)
  • AsheshR Profile Picture
    92 on at

    i have added a new "Patch" Button and using this code:

    //use a patch statement to mark the animal as 'Claimed for Adoption'
    Patch(Animals,galAnimals.Selected.'Shelter Status', {'Shelter Status':'Shelter Status'.'Claimed for Adoption'});
     
    but getting this error:
    AsheshR_0-1710911676851.png

     

    any help would be much appreciated.

     

    Thank you 🙂

  • AsheshR Profile Picture
    92 on at

    even this code is not working 😞

    Patch(Animals,ThisItem.'Shelter Status', {'Shelter Status':'Shelter Status'.'Claimed for Adoption'});
    AsheshR_0-1710911820981.png

     

  • AsheshR Profile Picture
    92 on at

    this also not working 😞

    Patch(
        'Foster Families',
        {
            'Shelter Status': 'Shelter Status (Animals)'.'Claimed for foster',
            'Foster Claimer': FosterClaimForm.LastSubmit        

        }

    );
  • AsheshR Profile Picture
    92 on at
    Patch(
        Animals,galAnimals.Selected, 'Shelter Status' = [@'Shelter Status'].'Ready for Foster' )
     
    not working.
     
    the shelter status is a global choice.
  • AsheshR Profile Picture
    92 on at
    Patch(Animals, galAnimals.Selected, { 'Shelter Status': 'Shelter Status (Animals)'.'Claimed For Adoption'});  
     
    getting invalid arguments error

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard