Post

2 followers Follow
0
Avatar

Internal Server Error 500 on entity Count

API POST Call to data/countQuery Failing with Error 500 internal server error. URL I am hitting is "https://api2.clarizen.com/v2.0/services/data/countQuery"
with an authorization header with Session ID.

Body of the request:
{
"query": {
"_type": "EntityQuery",
"typeName": "WorkItem"
}
}

Nathan Lang Answered

Please sign in to leave a comment.

1 comment

0
Avatar

Hello Nathan,

I don't think this is correct:
{
"query": {
"_type": "EntityQuery",
"typeName": "WorkItem"
}
}

Here's a valid example: 

{
 fields: [
    "ExternalId",
    "WorkItem",
    "CreatedOn"
 ],
 typeName: "Timesheet",
 paging:{"Limit":1000, "From":0}
}

I hope this helps.

Roland

Roland Pumputis 0 votes
Comment actions Permalink