Page 1 of 1

Find instances of a Recuring Job

Posted: Wed Feb 12, 2025 5:44 am
by the_messenger
Hoping that someone can help me find all instanced of a recuring job using the API. I would be happy to even have just the latest instance. I can see this in a report using BI but I cant see a way to access this with the API.

Re: Find instances of a Recuring Job

Posted: Fri Feb 14, 2025 2:30 am
by SimproAPITeam
Hi,
Recurring jobs can be found under the this endpoint:

Code: Select all

/api/v1.0/companies/{companyID}/recurringJobs/
https://developer.simprogroup.com/apido ... cc4fb03bdc

This only holds the updated info on the job. The API does not have different instances or versions of a job or quote.

Regards

Re: Find instances of a Recuring Job

Posted: Mon Feb 17, 2025 11:10 pm
by the_messenger
Thankyou. it is a bit frustrating that the job holds refrence to the Recuring job that it was created from however the Recuring Job does not hold refrence to the jobs that were created from it.

the work around appears to be to search every job in history looking for the recuring job as the source, or to try and manually do something with a custom field.

I woudl love to have any suggestions on locating the jobs that are essentially children of the parent Recurring job.

Re: Find instances of a Recuring Job

Posted: Tue Feb 18, 2025 1:09 am
by caine
The query would be something like this /api/v1.0/companies/{companyID}/jobs/?ConvertedFrom.ID={RecurringID}

But

Code: Select all

{
    "errors": [{
        "path": "\/ConvertedFrom",
        "message": "This API Column does not allow search requests.",
        "value": 1234
    }]
}

Re: Find instances of a Recuring Job

Posted: Tue Feb 18, 2025 3:01 am
by the_messenger
thanx Caine,
agree the quesry ConvertedFrom would be great.

Re: Find instances of a Recuring Job

Posted: Fri Feb 21, 2025 12:28 am
by SimproAPITeam
Hi,
As you describe this column does not support search.

If you want to identify jobs that has been created from a recurring job you could add a header to get jobs modified since a specified time and then get the ID and ConvertedFrom columns to limit the data handled.

You can then retrieve the data you want in your backend from the response.

Code: Select all

/jobs/?columns=ID,ConvertedFrom
Regards