Page 1 of 1

List All Job Logs excluding API Application accounts

Posted: Mon May 05, 2025 3:02 am
by Simon Clendon
(I have logged this in the Helpdesk portal - case 1094046 - but posting here as well in case other developers are experiencing the same issue and have a workaround)

Use Case:
Retrieve oldest job log entry to determine date a job was created.

Problem:
List All Job Logs recently excluding entries from API Application accounts.
https://developer.simprogroup.com/apido ... g/Job-Logs

Following the upgrade of simPRO from Version 24.4.1 to 25.1.4 on 14 April 2025 for a client, API calls to retrieve job logs via /api/v1.0/companies/{companyID}/logs/jobs/ using query parameters (JobID, orderby=DateLogged, page=1, pageSize=1) are no longer returning job logs generated by an API Application. Instead, the API only returns logs generated by an employee's account. And to even retrieve these we have to increase pageSize values so it reaches the first user log in logs. This suggests that logs created by an API Application account are being excluded in the returned array. It also suggests the Page and PageSize settings are still including the API Application account records.

Expected Behaviour:
List All Job Logs should include logs from any type of account.

Steps to Reproduce:
1. Create a new job in simPRO using an API Application.
2. Modify the job using a employee account.
3. Use Postman (or another API testing tool) to call:
  GET /api/v1.0/companies/{companyID}/logs/jobs/?JobID={JobID}&orderby=DateLogged&page=1&pageSize=1
4. Observe that the response does not include the job log from the developer account, and only returns logs created by other users when pageSize is increased.

Re: List All Job Logs excluding API Application accounts

Posted: Tue May 06, 2025 12:25 am
by SimproAPITeam
Hi Simon,

Thanks for sending it through with such detailed description, Our team will look into it as soon as we can.

Re: List All Job Logs excluding API Application accounts

Posted: Tue Jun 17, 2025 3:28 am
by Simon Clendon
Any updates on the bug and fix? Thx

Re: List All Job Logs excluding API Application accounts

Posted: Wed Jul 02, 2025 12:39 am
by SimproAPITeam
Hi Simon,

If it is raised through support, you should get updates from the case raised.

The team will look into as soon as they can.

Re: List All Job Logs excluding API Application accounts

Posted: Wed Aug 06, 2025 11:48 pm
by Simon Clendon
I asked for a status update:
Hi Simon,

Thanks for your email.

I have confirmed with my team they are currently working through the issue at hand. I don't currently have any further updates unfortunately however they are actively working on the issue.

I do apologise I cant provide any further information at this stage, however I will provide anything further I receive.

Kind regards,

Tom
Senior Customer Support Representative
Contact Us at Simpro Helpdesk

Re: List All Job Logs excluding API Application accounts

Posted: Tue Aug 19, 2025 12:43 am
by amy.arkturus
Hey - we had a similiar issue and had a ticket logged with Simpro Helpdesk. We have been informed that this has been resolved

"The issue you were encountering with the Job logs should now be resolved.
All results should be returned and you should see entries from both standard Simpro Users and also API Applications."

From 19 Aug

Re: List All Job Logs excluding API Application accounts

Posted: Wed Aug 20, 2025 9:18 pm
by Simon Clendon
Yes, I have also been notified that the issue has been fixed. Well, sort of. Log retrieval for jobs created before the upgrade to version 25.2.5 will still not work correctly.
This was fixed in the refactoring of the logs which occurred in 25.2.5 the current version that <client> is on. Are you able to run this on recent jobs after 7th July (when the upgrade occurred) and let me know if the same result is found? 

I believe this wont be an issue on jobs that were created after the upgrade on 7th July.
--simPRO support