CreateDocumentShortcut API

Creates a document shortcut (.lnk file) at the specified path that points to an existing target document. Shortcuts allow the same document to appear in multiple locations without duplicating the file content.

Endpoint

/srv.asmx/CreateDocumentShortcut

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
Path string Yes Full infoRouter path for the new shortcut document to be created (e.g. /MyLibrary/Shortcuts/AnnualReport.lnk). The file name portion must end with the .lnk extension.
TargetDocumentPath string Yes Full infoRouter path of the existing document the shortcut will point to (e.g. /MyLibrary/Finance/AnnualReport.pdf).

Response

Success Response

<response success="true" error="" />

Error Response

<response success="false" error="Error message" />

Required Permissions

The authenticated user must have Add Document permission on the destination folder (the parent folder of the Path parameter). The target document specified by TargetDocumentPath must also be accessible to the user.


Example

GET Request

GET /srv.asmx/CreateDocumentShortcut
  ?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
  &Path=/MyLibrary/Shortcuts/AnnualReport.lnk
  &TargetDocumentPath=/MyLibrary/Finance/Reports/AnnualReport.pdf
HTTP/1.1

POST Request

POST /srv.asmx/CreateDocumentShortcut HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&Path=/MyLibrary/Shortcuts/AnnualReport.lnk
&TargetDocumentPath=/MyLibrary/Finance/Reports/AnnualReport.pdf

SOAP Request

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:tns="http://tempuri.org/">
  <soap:Body>
    <tns:CreateDocumentShortcut>
      <tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
      <tns:Path>/MyLibrary/Shortcuts/AnnualReport.lnk</tns:Path>
      <tns:TargetDocumentPath>/MyLibrary/Finance/Reports/AnnualReport.pdf</tns:TargetDocumentPath>
    </tns:CreateDocumentShortcut>
  </soap:Body>
</soap:Envelope>

Notes



Error Codes

Error Description
[900] Authentication failed Invalid or missing authentication ticket.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
Invalid shortcut name. Extention must be .lnk The Path file name does not end with .lnk.
Folder not found The destination folder (parent of Path) does not exist or is not accessible.
Document not found The TargetDocumentPath does not refer to an existing document.

For detailed documentation visit: https://support.inforouter.com/api-docs/CreateDocumentShortcut