The following SOAP methods are provided specifically for interacting with reports.
create
Creation of a new report
EvalancheResourceInformation create( string name, int category_id )
Details
Parameters
- string name: Internal name of the report
Return value
- EvalancheResourceInformation: Objects analogous to the method getById (Query information about an object using object Id)
Required rights
Show eMailing
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rep="https://scnem.com/soap.php/soap/report">
<soapenv:Header/>
<soapenv:Body>
<rep:create>
<name>REPORT_NAME</name>
<category_id>FOLDER_ID</category_id>
</rep:create>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/report">
<SOAP-ENV:Body>
<ns1:createResponse>
<createResult>
<url>REPORT_URL</url>
<type_id>REPORT_TYPE_ID</type_id>
<category_id>FOLDER_ID</category_id>
<customer_id>MANDATOR_ID</customer_id>
<id>REPORT_ID</id>
<name>REPORT_NAME</name>
</createResult>
</ns1:createResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
addResourceToReport
Insert an object into a report
EvalancheResourceInformation addResourceToReport( int resource_id, int report_id )
Details
Parameters
- int resource_id: Id of the object to be inserted into the report.
- int report_id: Id of the report in which the object is to be inserted.
Return value
- bool: In case of success true
Required rights
Change report
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rep="https://scnem.com/soap.php/soap/report">
<soapenv:Header/>
<soapenv:Body>
<rep:addResourceToReport>
<resource_id>RESOURCE_ID</resource_id>
<report_id>REPORT_ID</report_id>
</rep:addResourceToReport>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/report">
<SOAP-ENV:Body>
<ns1:addResourceToReportResponse>
<addResourceToReportResult>true</addResourceToReportResult>
</ns1:addResourceToReportResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>