Can you please clarify for me the CustomerContract response in the Jobs API? When I use a GET to retrieve details for a specific job, the CustomerContract.ID and CustomerContract.Name both contain data - even for jobs that are NOT on a contract. The .Name is always the same as the Customer.Name. I have no idea what the .ID is. It is different than the Customer.ID, but it is not a valid contract ID.
If I look at a job that IS on a contract, the CustomerContract details are as to be expected. I.e. the .ID refers to a valid Contract.ID and the other details are correct.
It is very confusing, unless I'm just overlooking something. I would expect the CustomerContract. details to be empty if the job isn't on a contract. I'm not sure if it's related to this recent forum post: viewtopic.php?f=2&t=2868&p=7732&hilit=contract#p7732 Although it appears to be on every job, and I know we don't have that many deleted contracts (if any). In addition, the CustomerContract.ID is often (but not always) within one digit of the Customer.ID.
Clarification on CustomerContract in the JOBS API
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.
Re: Clarification on CustomerContract in the JOBS API
An update: I looked at the data in BI Reporting. Originally I didn't see that Customer Contract ID was available there. However, it is and it appears to be correct. I.e. it shows the correct Contract ID where it should and is empty for jobs that aren't on a contract.
Since this appears to be an API bug, I will submit a support request. Please let me know if you don't think this is a bug. Thanks
Since this appears to be an API bug, I will submit a support request. Please let me know if you don't think this is a bug. Thanks
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: Clarification on CustomerContract in the JOBS API
Hi Jennifer,
Thank you for submitting this through our help desk.
They will recreate the issue and verify if it's a bug so we can investigate closer.
Regards
Thank you for submitting this through our help desk.
They will recreate the issue and verify if it's a bug so we can investigate closer.
Regards
Simpro API Team | Simpro Software Group
DEVELOPER CENTER