web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 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,479 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard