Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By higgledy
#813905
I have a requirement to get all cases of all users. i.e. all cases in the database for every user. I see that the standard REST API only returns cases of the logged in user. How do I get around this limitation?
By higgledy
#813917
Thanks Amos, but I want all cases for all users no matter the case status or assignee. This http://{domain}/api/1.0/{workspace}/extrarest/cases/user/{user_uid} takes a usr_uid which implies it will return only cases assigned to that user.
User avatar
By amosbatto
#813919
In the same plugin, you can use:
POST http://{domain}/api/1.0/{workspace}/extrarest/sql

POST parameters:
sql: SQL SELECT statement to execute

Example:
Code: Select all
$postVars = array( 
   sql  =  "SELECT * FROM APPLICATION"; // add your search criteria
);
$url = "/api/1.0/workflow/extrarest/case/sql";
$oRet = pmRestRequest("POST", $url, $aVars, $oToken->access_token); 

Are you looking for a more intelligent approach to[…]

The 1Win Clone Script is a pre-built solution that[…]

Aviator Clone Script replicates the renowned Aviat[…]

From converting physical assets into digital asset[…]