List Jobs API - Filtering Jobs

Posts about the simPRO API. Help/support/how-to etc.
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.
Post Reply
pushkalmadaan
Posts: 14
Joined: Tue Aug 06, 2024 3:51 am

List Jobs API - Filtering Jobs

Post by pushkalmadaan » Wed Dec 11, 2024 6:49 am

Hi Team,

Is it possible to filter jobs on basis of time along with date?

06/12/2024 13:00 to 06/12/2024 16:00

/api/v1.0/companies/4/jobs/

"errors": [
{
"path": "/DateModified",
"message": "Invalid search value.",
"value": "between(2024-12-05,2024-12-07T15:30:00 10:00)"
}
]

"errors": [
{
"path": "/DateModified",
"message": "Invalid search value.",
"value": "between(2024-12-05 13:00,2024-12-07 14:00)"
}
]

I have tried using time with between, ge and le also but it didn't work out. Please help.

Also is it possible to fetch jobs on basis of multiple Customer.ID instead of one?

"errors": [
{
"path": "/Customer/ID",
"message": "Invalid search value.",
"value": "7002,7419"
}
]

"errors": [
{
"path": "/Customer/ID",
"message": "Invalid search value.",
"value": "eq(7002,7419)"
}
]

Thanks
Pushkal
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: List Jobs API - Filtering Jobs

Post by SimproAPITeam » Fri Dec 13, 2024 2:01 am

Hi pushkalmadaan,
To search for jobs having different Customer id's try this parameter:

Code: Select all

/jobs/?Customer.ID=in(4095,1394)

For the date modified it only supports the date when searching between two different dates.

Code: Select all

jobs/?DateModified=between(2024-11-01,2024-12-31)
Regards
Simpro API Team | Simpro Software Group
pushkalmadaan
Posts: 14
Joined: Tue Aug 06, 2024 3:51 am

Re: List Jobs API - Filtering Jobs

Post by pushkalmadaan » Sat Dec 14, 2024 11:33 am

Hi Team,

Thanks for response!!

Is their any other way to exclude jobs which were not updated in last hour?

We need all jobs updated to particular status but not updated in last hour must be before that only.

Thanks
Pushkal
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: List Jobs API - Filtering Jobs

Post by SimproAPITeam » Fri Dec 27, 2024 2:54 am

Hi pushkalmadaan,

https://developer.simprogroup.com/apido ... -resources

we can't filter by hour. only by day.

eg:

Code: Select all

jobs/?DateModified=le(2024-12-27)
You can submit an idea through our product portal here if you think we should implement it:
https://helpguide.simprogroup.com/Conte ... portal.htm

Thanks
Simpro API Team | Simpro Software Group
Post Reply