Has document imported

Check whether an asset has been imported into Orange Logic with the Import from a third party utility.

HasDocumentImported: function (_sExternalID, _sExternalService, _fCallbackSuccess, _fCallBackFail)

Request parameter attributes

AttributeTypeDescriptionRequired
ExternalIDstringThe ID of the asset in the third-party application.yes
ExternalServicestringThe name of the third-party application.yes
Example
var hasImported = false;
Utils.HasDocumentImported(
    'external_id',
    'AdobeAcrobatSign',
    // Success callback function
    function (_sResp) {
        var resp = JSON.parse(_sResp);
        hasImported = resp.Response;
    },
    // Failure callback function
    function (_sResp) {
        Log.Error('Failed to check document has imported: ' + _sResp);
    }
);