Previous Topic: About API Examples

Next Topic: getQueryList

GetObject

You can use this command file to retrieve various types information. You can use it to retrieve a list of queries, reports, or global parameters, and the Common Event Grammar (CEG). The getObject command uses a qualifier or argument named "type" to determine what data to return to the caller as in this example:

https://ELMSERVER:5250/spin/calmapi/getObject.csp?type=type&tag=tagname1&tag=tagnamen&taglogic=OR|AND

The following list provides a summary of the types of data returned using the variations of this command:

All the GetObject commands, with the exception of getQueryViewer and getReportViewer, return an error if there is no authenticated session in the API command:

Failed Response:
<?xml version="1.0" encoding="UTF-8" ?> 
<Result>
<Value>false</Value>
	<Description> User is not logged in</Description>
</Result>

In the preceding example, the result value was "false" which indicates a failure, and the description contains the reason, in this case: "User is not logged in".

More information:

Query and Report Viewer Calls


Copyright © 2010 CA. All rights reserved. Email CA about this topic