Hello, I have looked over the api and all I can find is how to retrieve employees, /api/v1.0/companies/{companyID}/employees/?IsSalesperson=True
Any ideas?
Employee by profile type
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: Employee by profile type
Hi Dazwah
thanks for your question, however, would you clarify what you are specifically looking for please. General documentation (including swagger link) is here https://developer.simprogroup.com/apidoc/ and specific employee information is here https://developer.simprogroup.com/apido ... 78a77c8b1b
Regards
Nige
thanks for your question, however, would you clarify what you are specifically looking for please. General documentation (including swagger link) is here https://developer.simprogroup.com/apidoc/ and specific employee information is here https://developer.simprogroup.com/apido ... 78a77c8b1b
Regards
Nige
Re: Employee by profile type
Im trying to get employees by profile type, whether its IsSalesperson=true or is IsProjectManager=true, I dont want to have to retrieve each employee then create my lists if there is a way to do it already with API
Re: Employee by profile type
Hi Daswah,
You propose the right way to filter the employees in your first post.
IsSalesPerson and IsProjectManager is a part of the user profile so set it up like this:
Regards
You propose the right way to filter the employees in your first post.
IsSalesPerson and IsProjectManager is a part of the user profile so set it up like this:
Code: Select all
/api/v1.0/companies/0/employees/?UserProfile.IsSalesperson=trueSindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: Employee by profile type
Great thank you, was almost there. Another one Im trying to do is get all sites related to a customer. Is this possible?
Re: Employee by profile type
You can use the same nested structure to get the sites related to a specific customer:
Code: Select all
api/v1.0/companies/0/sites/?Customers.ID={customerID}Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
DEVELOPER CENTER