I am running an automation to pull data from Dynamics into an excel file in Sharepoint. It works, but after repeatedly noticing that I got 5000 rows I think I'm up against a limit on the number of rows in a single operation. So I tried following this blog: Power Automate: Read Excel File – Piyush K Singh
I built my whole automation and it saves without errors. But when I test it, I routinely get "Error - Action List_Rows failed". Error details: Malformed XML.
Strangely, it is blaming my "List_Rows" section, but that is almost identical to the original version of this thing (non-batch-attempts) which works fine. All I am adding in this version of this step is 5000 in the Row Count and the skipCount variable (as described in the blog), and changing the pagination settings. However, when I started having problems I tried removing each of those elements from the ListRows and I kept getting the same Malformed XML errors, so I think I am hitting a bigger problem...
Here is my "ListRows" code:
{
"inputs": {
"host": {
"connectionName": "shared_commondataserviceforapps",
"operationId": "ListRecords",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
},
"parameters": {
"entityName": "sr_enrollment_tracker_activities",
"$select": "_sr_account_value, sr_employeename, description, subject, statuscode, statecode, sr_clientactivityresult, sr_employeename, _ownerid_value, scheduledstart, sr_callnotes",
"$filter": "scheduledend gt@{addDays(utcNow('yyyy-MM-ddTHH:mm:ssZ'),-30)}",
"$top": 5000,
"$skiptoken": "@variables('skipCount')"
},
"authentication": "@parameters('$authentication')"
}
}
Any other ideas how to get this to run in batch form so it (a) runs quicker, and (b) doesn't stop at 5000 rows...?