Wednesday 15 June 2011

dynamics crm - Generate Paging Cookie for CRM RetrieveMultiple Plugin -



dynamics crm - Generate Paging Cookie for CRM RetrieveMultiple Plugin -

i'm in odd situation, need generate paging cookie crm ordinarily generated crm service (more on why below) can't find it's schema or documentation covering it.

the format i've deduced follows, can confirm it's complete?:

<cookie page="{page no#}"> <{first sort column logical name} first="{value of first returned items sort column - format unknown}" last="{value of lastly returned items sort column - format unknown}" /> </cookie>

my situation i've written retrievemultiple plugin returns pseudo entity exists in external database, since organisation service isn't fetching info cannot rely on crm provide value me.

the paging cookie required iterate on odata queries, though ignored plugin free utilize own logic, i'm beingness cought validation message whenever include skip querystring parameter:

[-2147220715]: paging cookie required retrieve more records. update query retrieve total records below 5000

is there way suppress error message?

i have done investigation paging cookie format, these findings, update these findings time permitting if new features become apparent.

the paging cookie html encoded string, i'd love write proper schema if had time functional design have do:

"cookie" root element "cookie" has single int attribute "page", page no#, counting 1 the kid nodes of "cookie" logical names of order fields, complex types suffixed "name", i.e: "owneridname", "statecodename" these kid nodes have 4 potential attributes 2 present "first"/"last" text/name values sort column of first , lastly result record respectively, i.e: first=&quot;active&quot; last=&quot;inactive&quot; the alternative parameters "firstnull" , "lastnull" "1" if present, replace either "first"/"last" attribute respectively , indicate first value of sort column result set null , vice versa there 1 final kid node of "cookie" named primary key field on queried entity, contains first/last attributes these set guid id of records surrounded in "{}" braces added: if first , lastly values long strings, values trimmed 2000 characters before string encoded added: first , lastly values double html encoded, e.g: line feeds &amp;#xa;

plugins dynamics-crm crm dynamics-crm-2013

No comments:

Post a Comment