Page 1 of 1

Job Schedule

Posted: Tue Oct 22, 2024 3:36 pm
by pushkalmadaan
Hi Team,

Can you please share how we can fetch schedules for particular job?

Using below endpoint, we able to fetch all schedules not for particular job.

/api/v1.0/companies/{companyID}/schedules/

Thanks
Pushkal

Re: Job Schedule

Posted: Fri Oct 25, 2024 6:38 am
by SimproAPITeam
Hi Pushkal,
The endpoint you mention will give you an URL you can follow to see schedule on the job or do updates to it.

If you are looking for the specific endpoint for schedules on jobs you can find it here:
https://developer.simprogroup.com/apido ... -Schedules

Regards

Re: Job Schedule

Posted: Sat Oct 26, 2024 10:39 pm
by pushkalmadaan
Hi Team,

/api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID}/schedules/

Just to confirm, its not possible to get schedules for job without passing section id and cost center id as per above API point?

Thanks
Pushkal

Re: Job Schedule

Posted: Fri Nov 01, 2024 12:55 am
by SimproAPITeam
Hi,
To get detailed information you need the job, section and cost center info.

If you have the job id and cost center id you should be able to search for relevant schedules using the reference field.

Try adding a parameter like this:

Code: Select all

/schedules/?Reference={jobID}-{costCenterID}
This should give you the schedules related to the job and cost centre, but to get all details and make changes you need to follow the url provided when retrieving the individual schedule.

Regards

Re: Job Schedule

Posted: Thu Apr 03, 2025 1:47 pm
by nemanja-elogii
Hi,
I managed to get jobs with all related sections and cost centers (using display=all parameter). Example:

Code: Select all

/jobs/?display=all&columns=ID,Type,DueDate,Sections&DueDate=2025-04-07
Now, I want to check if schedules are created for these jobs.
The reference for the schedule can be created according to your suggestion {jobID}-{costCenterID}.
The references would be job1-costCenter1, job2-costCenter2, etc.

To get all schedules for all jobs with a single API call, it is supposed to be:

Code: Select all

/schedules/?Reference=in(job1-costCenter1,job2-costCenter2) 
But this does not work.

It works for other fields, like ID, Type, Staff.ID, Date, etc.

Code: Select all

/schedules/?Date=in(2025-04-07,2025-04-08) 
Could you please advise how to get all schedules for multiple jobs?
Preferably with a single API call.

Re: Job Schedule

Posted: Fri Apr 04, 2025 3:05 am
by SimproAPITeam
Hi nemanja-elogii,

What I recommend if to use wild search based on the Reference column.
e.g: {{domain}}/api/v1.0/companies/0/schedules/?Reference=14337%25

This will return all the schedules that the Reference start with 14337.

Hope this helps.

Regards

Re: Job Schedule

Posted: Fri Apr 04, 2025 10:11 am
by nemanja-elogii
Hi,
Thank you for the quick response.
As I understand, this will still require multiple API calls to get schedules for multiple jobs.
For example, if there are two jobs with IDs 1111 and 2222, getting all schedules for these 2 jobs would require two API calls:

Code: Select all

 {{domain}}/api/v1.0/companies/0/schedules/?Reference=1111%25
 {{domain}}/api/v1.0/companies/0/schedules/?Reference=2222%25
Is there a way to get schedules for all jobs with a single API call?
Query similar to this:

Code: Select all

 {{domain}}/api/v1.0/companies/0/schedules/?Reference=in(1111%25,2222%25) 
 {{domain}}/api/v1.0/companies/0/schedules/?Reference=(1111%25 OR 1111%25)
Additionally, in the same context: Is it possible to delete multiple schedules in a single API call?
The documentation explains how to remove one schedule at a time https://developer.simprogroup.com/apido ... b7f11c38ac. However, if you need to clear all schedules for an entire day, you would currently have to make separate API calls for each existing schedule. Is there a more efficient way to handle bulk deletions?

Re: Job Schedule

Posted: Tue May 13, 2025 10:42 am
by nemanja-elogii
Hi @SimproAPITeam,
Do you have any updates on the questions from the previous post?
We’re going live with Simpro integrations soon and would really appreciate your help.

Re: Job Schedule

Posted: Fri May 16, 2025 3:44 am
by SimproAPITeam
Hi,
I'm sorry for the missing reply. This was posted under feature requests and not our regular help channel.

It's currently not possible to search for schedules belonging to multiple jobs in one query. The same applies for DELETE, our API does not currently support deleting multiple records.

Unfortunately this requires more API calls. Hopefully these things are something that can be investigated in the future.

Regards

Re: Job Schedule

Posted: Mon Jul 13, 2026 10:27 pm
by nemanja-elogii
Hi,
I've noticed the API has been updated and now supports to search for schedules belonging to multiple jobs in one query.
Also creation and removal of schedules in bulk is possible.

Here is the link to the API docs