Hello everyone!
I've been wondering what the best approach to this problem would be, as everything I've tried so far has been either unsuccessful or not particularly scalable.
I have multiple Dataverse tables that I am writing to from Power Apps (Table A, B, C), all with different data. I'd like to issue these all at once, in a single request that either succeeds or fails at once, or works sequentially but rolls back any changes upon failure. I've tried two solutions so far, the first being a Changeset request using the Dataverse connector in PA, but this doesn't seem to work as the amount of rows I am writing to in Tables B & C are dynamic, and the Dataverse connector doesn't allow apply to each. The other solution is in PowerApps, which is simply writing to the tables and encasing everything in nested IfErrors that rollback changes on failure. This is somewhat better, but I am worried about issues happening on those rollbacks themselves and creating even more issues. I've seen some options that look viable using the Web API (Execute batch operations using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Learn/Dataverse Batch Requests in Power Automate - NETWORG Blog (thenetw.org)), but this is currently far outside my skillset.
Does anyone know of an easier way to do this? Or are my options simply between the good-but-higher-code solution and the worse-but-lower-code Power Apps solution?
Thanks!

Report
All responses (
Answers (