Hello,
I am able to get a employee id from schedule->staff->ID.
But when I hit a employee detail using API endpoint . For some users, it is giving me 404 error. I am confused to have this behaviour.
Please let me know what is wrong with my request or employee id.
For example I have get employee id 2033 and company Id = 3 from schedule->staff->ID.
But when i hit using this API 'https://durkin.simprosuite.com/api/v1.0 ... oyees/2033'.
I got 404 error.
Thanks
Get Employee Detail from 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: Get Employee Detail from api
Hi harpreet,
Thank you for your message, according the system staff id 2033 is a "plant" not an "employee", so the correct flow to retrieve the staff information (programmatically) is:
1. get a staff id from schedule > staff > ID (e.g. ID 2033)
2. retrieve staff information:
3. use "_href" link to access the staff information:
cheers,
Rick
Thank you for your message, according the system staff id 2033 is a "plant" not an "employee", so the correct flow to retrieve the staff information (programmatically) is:
1. get a staff id from schedule > staff > ID (e.g. ID 2033)
2. retrieve staff information:
Code: Select all
https://durkin.simprosuite.com/api/v1.0/companies/3/staff/2033
// return result
{
"ID": 2033,
"Name": "<masked>",
"Type": "plant",
"TypeId": 1793,
"_href": "/api/v1.0/companies/3/plantTypes/3/plants/1793"
}
Code: Select all
https://durkin.simprosuite.com/api/v1.0/companies/3/plantTypes/3/plants/1793
Rick
Rick Lan
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Get Employee Detail from api
Thanks a lot rick,
Your helps works again.
Your helps works again.
Re: Get Employee Detail from api
Hello,
I have a question?
If changing in schedule, the modified date of the job also change or not?
and
Is there a way to get only modified schedule of the job?
I have a question?
If changing in schedule, the modified date of the job also change or not?
and
Is there a way to get only modified schedule of the job?
Re: Get Employee Detail from api
Hi harpeet,
Yes, the jobs/quotes modified date will be changed if you change their schedule.
There is no way to track only the modified schedules of a job at the moment, but once we got our webhook feature released, you should be able to subscribe to receive any schedule change events (create / delete / update etc.).
cheers,
Rick
Yes, the jobs/quotes modified date will be changed if you change their schedule.
There is no way to track only the modified schedules of a job at the moment, but once we got our webhook feature released, you should be able to subscribe to receive any schedule change events (create / delete / update etc.).
cheers,
Rick
Rick Lan
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Get Employee Detail from api
Thanks Rick
DEVELOPER CENTER