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 / Set variables in a mod...
Power Apps
Unanswered

Set variables in a modern table

(0) ShareShare
ReportReport
Posted on by

Hi, I have the code below which is used to set the record to be patch (update) in the edit page which works perfectly fine for gallery under Onselect action. 

 

Set(varSelected,ThisItem); Navigate(EditPage_1); Set(varexist, LookUp('[Test] Sharepoint List','Report ID'=varSelected.ReportId));

 

 But now when I try to use it on the modern table, it prompted general error which I have no idea how to solve

Categories:
I have the same question (0)
  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @MrKoh rather than using ThisItem you would want to do something like this:

     

     

    Set(varSelected,YourModernTableName.Selected)

     

     

    Here is my example for you:

    My Modern Table Onselect property:

    AndrewR1_0-1711273723544.png

     

    Then I have a label with this as it text property: 

    AndrewR1_1-1711273767700.png

     

    Hope this helps!

    Please click Accept as solution if my post helped you solve your issue. ✔️ This will help others find the solution to this problem. It also closes the item. Remember, you can accept more than one post as a solution.

    If the content was useful in other ways, please consider giving it Thumbs Up. 👍

    Thanks
    Andrew

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard