Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Jun 2, 2024
2 parents 55c8799 + 707aaf9 commit 3a8f794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rappen.XRM.Helpers/Extensions/QueryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void NavigatePage(this QueryBase query, string cookie, int diffpag
}
pageno = pageno + diffpage;
fetchnode.SetAttribute("page", pageno.ToString());
fetchnode.SetAttribute("pagingcookie", cookie);
fetchnode.SetAttribute("paging-cookie", cookie);
fex.Query = pagedoc.OuterXml;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Rappen.XRM.Helpers/Extensions/ServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static EntityCollection RetrieveMultipleAll(this IOrganizationService ser
do
{
page++;
if (page != 1 || showMessageOnFirstPage)
if (worker?.WorkerReportsProgress == true && (page != 1 || showMessageOnFirstPage))
{
worker?.ReportProgress(0, GetProgress(message, resultCollection?.Entities?.Count ?? 0, pagesize, page, sw));
}
Expand Down

0 comments on commit 3a8f794

Please sign in to comment.