Retrieve subset of 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
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

Retrieve subset of jobs

Post by zoes » Sun Feb 20, 2022 3:05 am

Hiya,

Is it possible to request only jobs that are either in "Pending" or "Progress" stage? And similarly with quotes? If no, is this something that is being considered for future updates?

I see the jobs endpoint has a `search` parameter, can this be used to achieve a similar result? How exactly does it work? It accepts "any" or "all".
Search result must have a match on all provided fields or a match on any of the provided fields.
What is it matching with?

Cheers,
Zoe.
PremMarkeli
Posts: 148
Joined: Tue Oct 26, 2021 3:11 am

Re: Retrieve subset of jobs

Post by PremMarkeli » Sun Feb 20, 2022 10:25 pm

Hi Zoe,

Please add parameter "Stage=Progress" or "Stage=Pending" on the URL.

For example,

Code: Select all

api/v1.0/companies/0/jobs/?Stage=Progress

Regards.
Prem
API Developer | Simpro Software Group
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

Re: Retrieve subset of jobs

Post by zoes » Sun Mar 13, 2022 11:49 pm

Thank you for the information.

How can I ask for jobs with EITHER "Stage=Progress" or "Stage=Pending".

I have tried "Stage=Progress&Stage=Pending" and "Stage=Progress,Pending".
PremMarkeli
Posts: 148
Joined: Tue Oct 26, 2021 3:11 am

Re: Retrieve subset of jobs

Post by PremMarkeli » Mon Mar 14, 2022 12:22 am

Hi,

You can achieve that result using the following

Code: Select all

api/v1.0/companies/0/jobs/?Stage=in(Progress,Pending)
and you can find more info on searching routes here
https://developer.simprogroup.com/apido ... -resources

Regards.
Prem
API Developer | Simpro Software Group
Post Reply