cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Axeda -- How to find all the assets of a system? DeviceFinder.findAll() limits the search results.

bleung
1-Newbie

Axeda -- How to find all the assets of a system? DeviceFinder.findAll() limits the search results.

I'm very new to Axeda Custom Object development.  I have a couple of questions regarding how to find all the available assets in a system.

 

On our system, there are over 2000 assets.

 

In our custom object, we are trying to get the total number of assets. Here's part of the code:

 

:

DeviceFinder deviceFinder = new DeviceFinder(CONTEXT)

deviceFinder.setModel(model)

deviceList = deviceFinder.findAll()

:

 

However, deviceFinder.findAll() only returns 1000 assets, even though there are over 2000 on our system! It appears that deviceFinder.findAll() returns a maximum of 1000 only. Can we changed that limit?

 

Or better yet, what other calls can we make so that we could get the right asset count (without any limitations)?

 

Thanks!

1 REPLY 1

This is actually a great question for our ThingWorx Community. Once there you'll be able to login with your same credentials (email and pass) and post your question within the ThingWorx Developer Community.

Top Tags