/// <summary>
/// fetchxml分页
/// </summary>
public void QueryXmlPage(IOrganizationService service,string fetchxml,Action<EntityCollection> addAction)
{
int fetchCount = 5000;
int pageNumber = 1;
string pagingCookie = null;
EntityCollection ec = null;
do
{
string xml = CreateXml(fetchxml, pagingCookie, pageNumber, fetchCount);
ec = service.RetrieveMultiple(new FetchExpression(xml));
if (ec != null && ec.Entities.Count > 0)
{
addAction(ec);
pageNumber = pageNumber + 1;
pagingCookie = ec.PagingCookie;<
/// fetchxml分页
/// </summary>
public void QueryXmlPage(IOrganizationService service,string fetchxml,Action<EntityCollection> addAction)
{
int fetchCount = 5000;
int pageNumber = 1;
string pagingCookie = null;
EntityCollection ec = null;
do
{
string xml = CreateXml(fetchxml, pagingCookie, pageNumber, fetchCount);
ec = service.RetrieveMultiple(new FetchExpression(xml));
if (ec != null && ec.Entities.Count > 0)
{
addAction(ec);
pageNumber = pageNumber + 1;
pagingCookie = ec.PagingCookie;<