Skip to main content

Last updated: 2024-06-07


ProcessSmartPadArchive Method


In this topic:


Overview


The ProcessSmartPadArchive method archives a SmartPad entry or restores an archived SmartPad entry.


The ProcessSmartPadArchive method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
SmartPadIDStringYesThis is the object ID of the SmartPad entry to be archived or restored.
NoteStatusStringYesEnter 0 (to restore an archived SmartPad entry) or 1 (to archive an entry).
CategoryStringYes (see description)This is required when the
NoteStatus
parameter is set to 1. It is the SmartPad entry's classification for archiving purposes. Valid values: 1 (System-Generated Note), 2 (Old Note), 3 (Other), 4 (Incorrect Note).
ReasonStringYes (see description)This is required when the
Category
parameter is set to 3. It is a description of why the SmartPad entry is being archived.

Examples


Archiving a SmartPad Entry


The following request archives a SmartPad entry (identified by its object ID), assigns it to the Other archive category and provides a reason for the action:


XML
<request version='1.0'>
  <header>...</header>
  <method>
    <ProcessSmartPadArchive>
      <SmartPadID>SmartPad.1.87</SmartPadID>
      <NoteStatus>1</NoteStatus>
      <Category>3</Category>
      <Reason>No longer relevant</Reason>
    </ProcessSmartPadArchive>
  </method>
</request>

The response returns the object ID of the archived entry and the result of the operation:


XML
<response version="1.0">
  <header>
    <sessionClosed/>
  </header>
  <method>
    <ProcessSmartPadArchive>
      <SmartPadArchive id="SmartPadArchive.1.87">SmartPad Archived</SmartPadArchive>
    </ProcessSmartPadArchive>
  </method>
  <_status>OK</_status>
  <_systime>2015-10-02T16:31:16</_systime>
  <!--Cost 1017 mill seconds.-->
</response>

Restoring an Archived SmartPad Entry


The following example restores the SmartPad entry archived in the preceding example:


XML
<request version='1.0'>
  <header>...</header>
  <method>
    <ProcessSmartPadArchive>
      <SmartPadID>SmartPadArchive.1.87</SmartPadID>
      <NoteStatus>0</NoteStatus>
    </ProcessSmartPadArchive>
  </method>
</request>

The response returns the object ID of the restored entry and the result of the operation:


XML
<response version="1.0">
  <header>
    <sessionClosed/>
  </header>
  <method>
    <ProcessSmartPadArchive>
      <SmartPad id="SmartPad.1.87">SmartPad Restored</SmartPad>
    </ProcessSmartPadArchive>
  </method>
  <_status>OK</_status>
  <_systime>2015-10-02T16:42:18</_systime>
  <!--Cost 222 mill seconds.-->
</response>