BusinessManager.List top 1000 in background

Vote:
 

Hi,

When I run BusinessManager.List without any filters, BusinessManager.List("Contact", new FilterElement[] {}) commerce manager magically uses top 1000 in the background. So if you have more than 1000 contacts you will not be able to search for them without appying a filter. 

Is there any way to get alla to contacts anyway without applying a filter? I want BusinessManager.List("Contact", new FilterElement[] {}) to give me all, not to do a freakin' top 1000 without me saying so.

#155023
Sep 07, 2016 15:09
Vote:
 

Hi,

There are two ways to do that

- You can adjust the value of maxListObject in baf.data.metaobject.config.

- Even better You can use the other overload. Execute(new ListRequest(metaClassName, new FilterElement[] {}, new SortingElement[] {}, start, count) to specify the paging.

Regards,

/Q

#155031
Sep 07, 2016 20:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.