AgileApps Support Wiki Pre Release

Difference between revisions of "REST API:execSQL Resource"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 13: Line 13:
{{Query Parameters|
{{Query Parameters|
:*<tt>sql</tt> - The [[SQL Syntax|SQL language query]] to execute.}}
:*<tt>sql</tt> - The [[SQL Syntax|SQL language query]] to execute.}}
''Learn more:''
:* [[SQL Browser]]
:* [[SQL Syntax]]
:* [[SQL Functions]]


;Response:
;Response:

Revision as of 00:30, 18 November 2011

Use the SQL query language to access Object tables, using the REST API.

Learn more: REST API Conventions and Considerations.

Permissions

Lock-tiny.gif

Users that have the Customize Objects permission can use this resource. 

Execute a SQL Query

Method
GET
URI
https://{domain}/networking/rest/execSQL?sql={query}
Query Parameters
For more information, see: Specifying Query Parameters in REST APIs

Learn more:

Response

The tag names (shown here as field1, field2, etc.) are the column names specified in the query, or their aliases.

<syntaxhighlight lang="xml" enclose="div">

<platform>

   <record>
       <field1>...data...</field1>
       <field2>...data...</field2>
        ...
   </execSQL>
   <message>
       0
       <description>Success</description>
   </message>
   <recordCount>N</recordCount>      

</platform> </syntaxhighlight>

See also: REST API:Error Codes