[Released] Employee timesheets with incorrect href

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
gavynj
Posts: 13
Joined: Fri May 01, 2020 1:34 am

[Released] Employee timesheets with incorrect href

Post by gavynj » Tue Apr 06, 2021 1:37 am

Hi there,

I am fetching employee timesheets, and then following the _href value to that particular schedule. During testing, I've noticed that Quotes are returning invalid paths. E.g.

Code: Select all

{
    "ScheduleType": "Quote",
    "Reference": "-",
    "_href": "/api/v1.0/companies/39/quotes//sections//costCenters//schedules/162765",
    "Date": "2021-04-06",
    "StartTime": "17:00",
    "EndTime": "17:30",
    "TotalHrs": 0.5,
    "Cost": 20.17
}
If I fetch /api/v1.0/companies/39/schedules/162765 it returns the correct _href:

Code: Select all

{
    "ID": 162765,
    "Type": "quote",
    "Reference": "5933-9437",
    "TotalHours": 0.5,
    "Date": "2021-04-06",
    "Blocks": [
        {
            "Hrs": 0.5,
            "StartTime": "17:00",
            "ISO8601StartTime": "2021-04-06T17:00:00+12:00",
            "EndTime": "17:30",
            "ISO8601EndTime": "2021-04-06T17:30:00+12:00",
            "ScheduleRate": {
                "ID": 84,
                "Name": "Normal Time"
            }
        }
    ],
    "_href": "/api/v1.0/companies/39/quotes/5933/sections/8133/costCenters/9437/schedules/162765",
    "DateModified": "2021-04-06T12:15:48+12:00"
}
Jobs and Activities are working fine.

Can this be fixed please?

Cheers,
Gavyn
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Employee timesheets with incorrect href

Post by Muqeet » Tue Apr 06, 2021 2:04 am

Hello Gavyn,

Please sent me the employee timesheet endpoint with build url in a private message.
Muqeet
API Developer | simPRO Software Group
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [API-1004] Employee timesheets with incorrect href

Post by Muqeet » Tue Jun 01, 2021 4:57 am

The fix has been released with simPRO version 21.2.2
Muqeet
API Developer | simPRO Software Group
Post Reply