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 / Issue with creating ne...
Power Apps
Unanswered

Issue with creating new entry to dataverse table

(0) ShareShare
ReportReport
Posted on by

Hi,

I am very new to Power Apps and am still wrapping my head around its functionalities.

I am trying to integrate into a Power BI report an app that allows users to add or edit comments. The source of the original data is coming from our Datalake so I've created a Dataverse table to house the comments. 

I've successfully created the main building blocks of the app but what I'm struggling with is with creating comments for ID with entries that don't currently exist in the Dataverse table.

My button is running the following:

 

If(
 CountRows(Filter('Test Tables', ID = First(PowerBIIntegration.Data).'all_sessions.sid')) > 0,
 SubmitForm(Comments),
 Patch(
 'Test Tables',
 Defaults('Test Tables'),
 {
 ID: First(PowerBIIntegration.Data).'all_sessions.sid',
 'Series Name': First(PowerBIIntegration.Data).'all_sessions.name',
 Comments: Comments
 }
 )
)

 


The above works fine if there is an entry already has a comment, it updates perfectly. But it gives an error if there is no pre-existing comment.

Any help is appreciated.

Categories:
I have the same question (0)

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