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 / Patching PowerBI recor...
Power Apps
Unanswered

Patching PowerBI record to Dataverse Table using embedded Power Apps

(0) ShareShare
ReportReport
Posted on by 2

Hello! 

 

 

Looking for some assistance with a use case involving an Embedded Powerapp within a PowerBI Dashboard (Dataverse backend) 

 

Trying to have end users select a record on the table below in PowerBI, and when they click one of the buttons below it adds a row to the dataverse table.

I've been trying to use different variations of the script below but haven't made any headway. Any insight / assistance would be appreciated.

Patch(

    DataverseTable,

    LookUp(DataverseTable, PrimaryKeyField = Selected.PrimaryKeyField)

)



 

kymac17_0-1708093829776.png

 

Categories:
I have the same question (0)
  • vaubeee Profile Picture
    533 Microsoft Employee on at

    Hi @kymac17 ! Try this..

    Patch to update a record:

    Patch(
     DataverseTable,
     LookUp(DataverseTable, PrimaryKeyField = ThisItem.PrimaryKeyField),
     {'ParentID': TextLabel.Text}
    )

    Make sure that TextLabel is the correct name of your text label and that TextLabel.Text returns the value you expect.
    For New Records: 

    Patch(
     MyDataverseTable,
     Defaults(MyDataverseTable),
     {'ParentID': TextLabel.Text}
    )

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question / helped to solve your problem, please accept as solution and give me a Thumbs up. Thanks! - Remember: you can accept more than one post as a solution.

  • kymac17 Profile Picture
    2 on at

    Hello @VauBee - Thank you for the reply, I found examples similar to those on the forums while doing some research. There isn't a Text Label involved in the process, as the patch is initiated by clicking on a record on the PowerBi table. If I am missing anything let me know 

  • lbendlin Profile Picture
    8,711 Super User 2026 Season 1 on at
    Trying to have end users select a record on the table below in PowerBI, and when they click one of the buttons below it adds a row to the dataverse table.

    The PowerApps visual in Power BI will always transfer its entire filter context. So having the end user "select"  a "record"  on the "table"  doesn't mean much.  You need to force them to pick EXACTLY one entry, and make sure your PowerApps visual has EXACTLY the same filter context as that visual they use for the modification/selection.

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard