Hello Everyone,
We have used the Graph API Inside the Power-apps to extract the contents inside the document it was working with smaller chunks of dataset but when record increased more than 2000 its failed with the below error.
Power Fx
- varPageNumber ----> 1
- varPageSize ----> 25
Set(
requestbody,
"{
""requests"": [
{
""entityTypes"": [
""listItem""
],
""query"": {
""queryString"": """ & Substitute(GlobalSearchKeyword, """", "\\""") & " Refineablestring04:No IsVersionDocWSCHCS:No (DocStatusOWSCHCS:Published OR DocStatusOWSCHCS:\\""Overdue for Update\\"" OR DocStatusOWSCHCS:\\""Under Review\\"" OR DocStatusOWSCHCS:Draft OR DocStatusOWSCHCS:\\""Under Review\\"") " & tempGBSearchFilter & " PATH:\\"" & SearchPath & "\\"""
},
""sortProperties"": [
{
""name"": ""title"",
""isDescending"": false
}
],
""size"": " & varPageSize & ",
""from"": " & ((varPageNumber * varPageSize) - varPageSize) & ",
""fields"": [
""id"",
""name"",
""title"",
""webUrl"",
""siteowstext"",
""doctypeowstext"",
""refinablestring01"",
""docstatusowschcs"",
""refinabledate00"",
""docstatusowschcs"",
""curdocversionowstext"",
""listitemid""
]
}
]
}"
);
Error Screenshot