IntegrationSampleJavascriptObject
IntegrationSampleJavascriptObject exposes five API calls for your use.
getOrderInformationFromAppraiseItPro()
Returns a unique order/report ID and the contents of the current report in AIXML.
await IntegrationSampleJavascriptObject.getOrderInformationFromAppraiseItPro();
Returns
| Type | Description |
|---|---|
| string | A unique order/report ID. |
| string | The contents of the current report in AIXML. |
getIsDynamicReport()
Returns a boolean indicating whether or not the current report is a dynamic report.
await IntegrationSampleJavascriptObject.getIsDynamicReport();
Returns
| Type | Description |
|---|---|
| bool | true if the report is dynamic, otherwise false. |
sendRptiXmlToAppraiseItPro(string xml)
Sends an AIXML payload to Appraise-It Pro for import into the current report.
Useful when you don't need to include images, PDFs, and/or RTFs.
Supports UAD 2.6, UAD 3.6, and all non-UAD report types in the Appraise-It Pro library.
await IntegrationSampleJavascriptObject.sendRptiXmlToAppraiseItPro('<?xml version="1.0" encoding="utf-16"?><Report xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Application VendorName="SFREP" ProductName="Appraise-It" ProductVersion="2.1.0" AixmlVersion="1.5" />...</Report>');
Parameters
| Type | Description |
|---|---|
| string | Complete, well-formed AIXML to be imported into the current report. |
sendRptiDownloadUrlToAppraiseItPro(string url)
Sends the URL of a full RPTI package to Appraise-It Pro for download and import into the current report.
Useful when you want to include images, PDFs, and/or RTFs.
Supports UAD 2.6, UAD 3.6, and all non-UAD report types in the Appraise-It Pro library.
await IntegrationSampleJavascriptObject.sendRptiDownloadUrlToAppraiseItPro('https://api.dev.sfrep.com/resources/StaticSample.rpti');
Parameters
| Type | Description |
|---|---|
| string | The URL of an RPTI .zip file to be downloaded via GET request and imported into the current report. |
sendMismo36DownloadUrlToAppraiseItPro(string url)
Sends the URL of a full MISMO 3.6 (UAD subschema) package to Appraise-It Pro for download and import into the current report.
Only supports UAD 3.6 report types. UAD 2.6 and non-UAD report types are not supported.
await IntegrationSampleJavascriptObject.sendMismo36DownloadUrlToAppraiseItPro('https://downloads.sfrep.com/resources/UAD_3.6_SF1.zip');
Parameters
| Type | Description |
|---|---|
| string | The URL of a MISMO 3.6 .zip file to be downloaded via GET request and imported into the current report. |