Hello there,
I'd like to clarify one thing. We need to create 2 or more schedules for one job.
E.g. 8-9 and 9-10 and 2 separate time periods but we get error saying: A schedule for this job on this date already exists. Refer to schedule XXXX.
Is it possible to find a workaround in this case? or is it a bug?
multiple job schedules
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.
multiple job schedules
- Attachments
-
- image_2023-08-31_16-45-20.png (36.67 KiB) Viewed 3683 times
Re: multiple job schedules
Hi Dimitry,
One employee can only have one schedule on a job per day. But you can make multiple blocks with different times on the same schedule to separate time periods.
Regards
One employee can only have one schedule on a job per day. But you can make multiple blocks with different times on the same schedule to separate time periods.
Regards
Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: multiple job schedules
Could you give me an example with API calls?
Is it schedule eg from 8-11 and then it has 2 time periods 8-9 and 9-11?
Is it schedule eg from 8-11 and then it has 2 time periods 8-9 and 9-11?
Re: multiple job schedules
Hi,
Yes, it would be one schedule with two blocks. If you open it in Simpro you would see two timeblocks on the schedule for that employee.
Using the schedules endpoint you can use PATCH to update and add timeblocks for the same employee on the same day and job.
Something like this:
Regards
Yes, it would be one schedule with two blocks. If you open it in Simpro you would see two timeblocks on the schedule for that employee.
Using the schedules endpoint you can use PATCH to update and add timeblocks for the same employee on the same day and job.
Code: Select all
/api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID}/schedules/{scheduleID}Code: Select all
{
"Blocks": [
{
"StartTime": "08:00",
"EndTime": "09:00",
"ScheduleRate": 0
},
{
"StartTime": "12:00",
"EndTime": "13:00",
"ScheduleRate": 0
}
]
}Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
DEVELOPER CENTER