List All Job Logs excluding API Application accounts
Posted: Mon May 05, 2025 3:02 am
(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.
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.