Post

2 followers Follow
0
Avatar

Resource Load through API

I'm trying to automate getting the resource load report through the API. I'm using V2 of the API.

I saw this post https://success.clarizen.com/hc/en-us/community/posts/203993808-v6-Download-pre-built-Resource-Load-report-via-API?input_string=Resource%20Load%20through%20API

but it seems to only be available for V1 of the API?

Could anyone point me in the right direction?

Audun Rundberg Answered

Please sign in to leave a comment.

7 comments

0
Avatar

OK, so now I get a 500 Internal server error instead.

From the docs, it looks like no parameters are required. If that's not correct, do you know what parameters I need to set?

Audun Rundberg 0 votes
Comment actions Permalink
1
Avatar

Posting my work to anyone who comes looking. :-)

This gets the resource load for a single user (with the ID yadi-yadi-yadi) in hours for a period of four weeks (controlled by the dates in the timeFilter)

POST to https://api2.clarizen.com/V2.0/services/data/resourceManagementQuery

JSON:

{
   "resourceEntitiesIds":[
      "/User/yadi-yadi-yadi"
   ],
   "definition":{
      "setting":{
         "fields":[
            {
               "typeName":"User",
               "fieldNames":[
                  "Email"
               ]
            }
         ],
         "sortingType":"Alfabet",
         "workOrRemainingEffort":"Work",
         "loadOrAvailability":"Load",
         "hoursView":true,
         "reportingPeriod":"Weekly"
      },
      "globalFilters":{
         "timeFilter":{
            "from":"2016-02-01T00:00:00",
            "to":"2016-02-28T00:00:00"
         },
         "wantedStates":[
            "Active",
            "Draft"
         ]
      }
   }
}
Audun Rundberg 1 vote
Comment actions Permalink