Hi!
I'm building the power apps portal with data located in the Dataverse.
One of the users stories requires a calculations based on the information present in multiple tables of the database.
I have an html button on the portal page which is calling the JavaScript function. But from this function i need to do some operations on the data and save it to database. I see two options here.
1. Create an API using Powerapps flows, but all actions to get the data and update it requires premium subscription.
2. Build all the logic in JavaScript using datavesrse web API to get the data and to write the data (https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api), so everything is on the client side, which doesn't seem very secure to me.
Is there any other option that I'm missing?