Hi Members,
I have a requirement in Power Automate, that I need to export more than 50,000 or 100000 data from SharePoint list to Excel.
So for that, I started creating a flow, as per below mentioned steps:
- Manually Trigger a flow
- Send an HTTP request to SharePoint
- uri = _api/web/lists/getbytitle('BO')/items
- Parse JSON
- Content: body(Send_an_http_request_to_SharePoint)
- Schema:
{
"type": "object",
"properties": {
"d": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Title": {
"type": "string"
},
"field_1": {
"type": "string"
},
"field_2": {
"type": "integer"
},
"field_3": {
"type": "string"
},
"field_4": {
"type": "string"
},
"field_5": {
"type": "integer"
},
"field_6": {
"type": "string"
},
"field_7": {
"type": "string"
},
"field_8": {
"type": "string"
},
"Modified": {
"type": "string"
},
"ID": {
"type": "integer"
},
"Created": {
"type": "string"
},
"AuthorId": {
"type": "integer"
},
"EditorId": {
"type": "integer"
},
"OData__UIVersionString": {
"type": "string"
},
"Attachments": {
"type": "boolean"
},
"GUID": {
"type": "string"
}
}
}
}
}
}
}
}
4. Create CSV Table: Result = body('parse_json')?['d']?['results']
But I am facing an error as: "The error indicates that the 'from' property in the 'Create CSV table' action is receiving a value of type 'Null', which means it is not getting the expected array of items. This is likely caused by the previous action, where the 'results' property from the parsed JSON is not being populated correctly. To resolve this, you should check if the 'body' of the HTTP request to SharePoint is returning the expected data structure, particularly if the 'd' and 'results' properties are present and contain an array."
Please help me out.
Thanks in advance!