volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

BusinessManager.List top 1000 in background

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

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.