Good day,
Currently I am working on a small project, which should allow users to add comments to Power BI table.
To achieve this, I'm using Power App and PowerBIIntegration and saving those comments on SharePoint for further analysis but the business required, that the comments should be send to provided SQL Server.
I was able to connect to it with Power App, I can retrieve data from it but I cannot save the data there. I'm talking about saving 1 - 100 rows per session so it's not huge amount, therefore I suggested we won't use Power Automate to run a SQL query and simply update the db from PA directly.
The issue is, I've spent several hours trying to find a way how to add new rows into the db, with no luck.
I though that the most simple command would be:
Patch(
PA_server,
Defaults(PA_server),
{
Comment: TextInput5,
Updated: Now(),
Updated_by: User().Email
}
);
Notify("Success",NotificationType.Success,5000);
But it gives me an error:
Network error when using Patch function: The specified record was not found.
Columns Comment, Updated and Updated_by are exactly what I have in the db, so I got lost.
I would appreciate if you could let me know what I'm doing wrong or maybe suggest different approach I can study and implement.
Best regards.