Job -> Primary Customer Contact

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
bgur
Posts: 97
Joined: Sat Apr 27, 2019 10:23 am

Job -> Primary Customer Contact

Post by bgur » Mon Mar 21, 2022 12:03 am

In the Project Job Setup, we specify a "Primary Customer Contact". Is this contact details available through the API? It seems to be neither the "Customer Contact" or the "Site Contact".
PremMarkeli
Posts: 148
Joined: Tue Oct 26, 2021 3:11 am

Re: Job -> Primary Customer Contact

Post by PremMarkeli » Mon Mar 21, 2022 5:21 am

Hi,

CustomerContact column should give you info about "Primary Customer Contact" which set up in the Project Job setup. And it is working as expected on our QA environment. If this does not work for you as expected would you please share your build details, job number and screenshots of the info as a private message.

Regards.
Prem
API Developer | Simpro Software Group
casey
Posts: 3
Joined: Thu Nov 16, 2023 12:04 am

Re: Job -> Primary Customer Contact

Post by casey » Thu Nov 16, 2023 12:13 am

I am having a similar problem getting the API to access sites-details-primary contact
Some info is retrieved using: https://{company}.simprosuite.com/api/v1.0/companies/0/sites/274?columns=Name,ID
But i also need Name Email and mobile phone number.
Can you please provide an example?

Also is there a site where the various fields and the directory structure required to pull them is outlined?
Thanks.
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Job -> Primary Customer Contact

Post by Sindre » Thu Nov 16, 2023 4:00 am

Hi Casey,
You can find our documentation describing all endpoints and their data here:
https://developer.simprogroup.com/apido ... c13f15e201

To get primary contact with the query you have you can add the columns name like this to get the data:

Code: Select all

api/v1.0/companies/0/sites/274?columns=Name,ID,PrimaryContact
Regards
Sindre
API Developer | Simpro Software Group
Post Reply