Testing Reading in Work Order Asset not show all test result

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
VincentHoang
Posts: 24
Joined: Fri Sep 25, 2020 12:24 am

Testing Reading in Work Order Asset not show all test result

Post by VincentHoang » Mon Mar 03, 2025 4:54 am

Hi Team,

We have set up test readings for an asset type that includes approximately 35 test readings.

After completing the testing, we attempted to retrieve the test readings using the Job Work Order Asset Endpoint:

{{base_url}}jobs/:jobid/sections/:sectionid/costCenters/:costcenterid/workOrders/:workorderid/assets/

However, the response only returns 30 test readings per asset instead of the expected 35.

Could you please investigate this issue?

Best regards,
Vincent Hoang
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Testing Reading in Work Order Asset not show all test result

Post by SimproAPITeam » Fri Mar 07, 2025 5:22 am

Hi,
The default page size returned is 30. Can you check the header info if there is a page two that contains the remaining data.

If you have increased the page size or page two is empty please create a ticket with our help desk so they can try to recreate the issue.

Regards
Simpro API Team | Simpro Software Group
VincentHoang
Posts: 24
Joined: Fri Sep 25, 2020 12:24 am

Re: Testing Reading in Work Order Asset not show all test result

Post by VincentHoang » Fri Mar 14, 2025 12:17 am

Hi Team,

The issue is not with the number of assets returned in the response—I understand that I can adjust the pageSize to retrieve more assets.

The actual issue is with the sub-data of an asset, specifically the asset test readings. Unlike assets, the number of test readings displayed cannot be controlled by modifying the pageSize.

For reference, I am using the following endpoint:
https://developer.simprogroup.com/apido ... ed8bae3589

As shown in the documentation, TestReadings is an array within each asset:

Code: Select all

"TestReadings": [
  {
    "TestReading": {},
    "Value": "string"
  }
]
Best regards,
Vincent Hoang
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Testing Reading in Work Order Asset not show all test result

Post by SimproAPITeam » Fri Mar 14, 2025 7:37 am

Hi Vincent,

Sorry we have misunderstood ur enquiry. This seems like a bug can you please raise it through our support please.

more info: viewtopic.php?f=3&t=2675
Simpro API Team | Simpro Software Group
Post Reply