Skip to content

AddISOComment API

Adds an ISO compliance review comment to the latest version of the specified document. The comment is recorded as an ISO log entry and the document's last ISO review date is updated. The calling user must have an active ISO Review Task assigned to them for the target document.

Endpoint

/srv.asmx/AddISOComment

Methods

  • GET /srv.asmx/AddISOComment?authenticationTicket=...&DocumentPath=...&CommentText=...

  • POST /srv.asmx/AddISOComment (form data)

  • SOAP Action: http://tempuri.org/AddISOComment

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
DocumentPath string Yes Full infoRouter path of the document to comment on (e.g. /Finance/Reports/Q1Report.pdf).
CommentText string Yes The ISO review comment. It is recorded against a review task assigned to the caller; without one the call is refused with 4000.

Response

Success Response

<root success="true" />

Error Response

<root success="false" error="[ErrorCode] Error message" />

Required Permissions

  • The caller must be an authenticated user with a valid ticket.

  • The caller must have an active ISO Review Task assigned to them for the specified document. Users without an assigned ISO Review Task will receive an error even if they have other permissions on the document.

  • The document must not be in an Offline (archived) state.


Example

GET Request

GET /srv.asmx/AddISOComment?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301&DocumentPath=/Finance/Reports/Q1Report.pdf&CommentText=Reviewed+and+approved+per+ISO+9001+requirements HTTP/1.1

POST Request

POST /srv.asmx/AddISOComment HTTP/1.1

Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301

&DocumentPath=/Finance/Reports/Q1Report.pdf

&CommentText=Reviewed and approved per ISO 9001 requirements

SOAP Request

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

               xmlns:tns="http://tempuri.org/">

  <soap:Body>

    <tns:AddISOComment>

      <tns:AuthenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:AuthenticationTicket>

      <tns:DocumentPath>/Finance/Reports/Q1Report.pdf</tns:DocumentPath>

      <tns:CommentText>Reviewed and approved per ISO 9001 requirements</tns:CommentText>

    </tns:AddISOComment>

  </soap:Body>

</soap:Envelope>

JavaScript

Every call answers XML with HTTP 200, success or not, so success is the thing to branch on and errorCode is the number to report.

async function call(action, params) {
  const response = await fetch(`/srv.asmx/${action}?${new URLSearchParams(params)}`);
  const root = new DOMParser()
    .parseFromString(await response.text(), 'text/xml')
    .documentElement;

  if (root.getAttribute('success') !== 'true') {
    throw new Error(`${root.getAttribute('errorCode')}: ${root.getAttribute('error')}`);
  }
  return root;
}

This is not a free-form comment. It answers an ISO or periodic review task assigned to the calling user, and a caller with no such task on the document is refused with 4000 - so it cannot be used to annotate a document the way AddDocumentComment and AddSOXComment can. Assign the review first; the entry then appears in GetISOLogs.

try {
  await call('AddISOComment', {
    authenticationTicket: ticket,
    DocumentPath: '/Quality/Procedures/SOP-12.pdf',
    CommentText: 'Reviewed, no change required.'
  });
} catch (error) {
  // 4000 here means "you have no review task on this document", not "the text was wrong"
  console.warn(error.message);
}

Notes

  • The comment is always applied to the latest version of the document (LastVersionNumber). There is no way to add an ISO comment to a specific older version via this API.

  • The document's Last ISO Review Date field is automatically updated to the current server date and time when the comment is successfully added.

  • Comment text is sanitized (whitespace normalized) before being stored.

  • If the document is in an Offline state (archived to secondary storage), the API returns an error. The document must be online to accept ISO comments.

  • An ISO Review Task is created as part of a Workflow process that includes an ISO review step. If no such workflow task exists for the calling user on this document, this API call will fail.



Error Codes

The errorCode values this operation returns, checked against a running server:

errorCode When
4010 the ticket is expired or unknown, or there is no ticket at all - the anonymous user is refused
4000 the caller has no ISO or periodic review task assigned on this document
4041 no document at that path - including one the caller may not see
HTTP 400 a required string parameter was empty; refused by model binding, so there is no error document
Error Description
[900] Authentication failed Invalid or missing authentication ticket.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
Document not found The specified DocumentPath does not exist or the user does not have access to it.
There is no ISO Review Task assigned to you The calling user does not have an active ISO Review Task for this document.
Document is offline The document is archived (offline state) and cannot accept ISO comments.