Getting the Details of a Query

Returns the query specification of a query statement created in an instance of the open session.

Request

GET <slURL>/queries/{queryId}

Where:

  • {queryId} is the query statement identifier retrieved from the list of queries
Response

Response type: application/xml

Response body:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query xmlns="http://www.sap.com/rws/sl/universe" id="..." dataSourceType="unx" dataSourceId="...">
    Query_Specification
</query>

Where:

  • id is the query identifier
  • dataSourceType is the universe type (unx)
  • dataSourceId is the universe identifier

Example

GET <slURL>/queries/6089913651317040730

<query xmlns="http://www.sap.com/rws/sl/universe" id="6089913651317040730" dataSourceType="unx" 
    dataSourceId="5808">
    <querySpecification version="1.0">
        <queryData>
            <resultObjects>
                <resultObject path="Customer|folder\Geography|folder\City|dimension"
                    id="_IBo8L7IhEeCk0Ylv-tlF2Q"/>
                <resultObject path="Customer|folder\Customer|dimension" 
                    id="_IBo8OrIhEeCk0Ylv-tlF2Q"/>
                <resultObject path="Inventory|folder\Stock Level|measure" 
                    id="_IB8eFrIhEeCk0Ylv-tlF2Q"/>
            </resultObjects>
        </queryData>
    </querySpecification>
</query>