Audit option

Build 1501 on 14/Nov/2017  This topic last edited on: 29/Oct/2012, at 16:11

Audit option outputs in the XML the complete audit trail of the object.

For example, if the 'story' object with id 63954 has been created, modified a couple of times and copied once, executing ../do.ashx?cmd=objsnav&ids=63954&options=audit produces:

  <story id="obj63954" . . . >

    . . .

    <nav:audit handle="1">

      <nav:actionDesc 

        Action="CopyTo" Time="2012-10-19T13:04:17.540Z" 

        LoginGuid="2f52e8ba-995e-47ab-aa6e-f6e27c0871ec" 

        UserId="1705" UserDesc="TeraDP\Mimo" 

        DestObjectId="64022" DestObjectTypeName="article" DestObjectDesc="Test story 2">

        <user idref="obj1705">

          <nav:refObject idref="obj1705">

            <user id="obj1705" . . . />

          </nav:refObject>

        </user>

        <dest idref="obj64022">

          <nav:refObject idref="obj64022">

            <article id="obj64022" . . . />

          </nav:refObject>

        </dest>

      </nav:actionDesc>

      <nav:actionDesc 

        Action="Update" Time="2012-10-18T13:15:15.873Z" 

        LoginGuid="ab8c3310-0478-4752-b2e2-f0df0d8a4c76" 

        UserId="1705" UserDesc="TeraDP\Mimo" Codes="Normal Content">

        <user idref="obj1705">

          <nav:refObject idref="obj1705">

            <user id="obj1705" . . . />

          </nav:refObject>

        </user>

      </nav:actionDesc>

      <nav:actionDesc 

        Action="Update" Time="2012-10-18T13:00:05.783Z" 

        LoginGuid="456facef-17c9-4b68-b4bb-25aa9b11a668" 

        UserId="1705" UserDesc="TeraDP\Mimo" Codes="Normal Content">

        <user idref="obj1705">

          <nav:refObject idref="obj1705">

            <user id="obj1705" . . . />

          </nav:refObject>

        </user>

      </nav:actionDesc>

      <nav:actionDesc 

        Action="Create" Time="2012-10-18T12:57:14.663Z" 

        LoginGuid="fae13c6e-752e-443f-86a6-4928d71df328" 

        UserId="1705" UserDesc="TeraDP\Mimo">

        <user idref="obj1705">

          <nav:refObject idref="obj1705">

            <user id="obj1705" . . . />

          </nav:refObject>

        </user>

      </nav:actionDesc>

    </nav:audit>

    . . .

  </story>

The XML of each audit trail entry has the same structure of the audit entries generated by '../do.ashx?cmd=auditnav' (see http://forum.teradp.com/topic.asp?whichpage=1&TOPIC_ID=239#3181) EXCEPT that the data of the object itself is not rendered ('ObjectId', 'ObjectDesc' etc.), because these entries are already contained in the complete XML of the object itself.

The entries are in reverse chronological order - the most recent first.

The system never renders more than 1000 audit trail entries, to prevent objects with very big audit trails to bog down the system.

Available from build 1.5.1601.0