Page tree

As well as searching fields in the usual way it is also possible to get only recently updated records, this can be done using the RevisionVersion field.

RevisionVersion is an integer field so can be used in the same way as number searching. Every time a record is created, modified or deleted it is assigned a unique sequential revision number. so by knowing the highest RevisionVersion value from your last query you can get only newly modified records for your next query.

New & Updated Records/SoutronAPI/catalogues?search=RevisionVersion:397723<>Will find all records created or edited since the specified RevisionVersion number.
New & updated records within a range/SoutronAPI/catalogues?search=RevisionVersion:397723<>398723Same as above but useful if you wish to only get small batches of updates at a time (in this case around 1000 records). you can also use page-size and page parameters.
Deleted Records only/SoutronAPI/catalogues?search=RevisionVersion:405722<>&deleted=1Will find all records deleted since the specified RevisionVersion number. 

If the same record has been modified several times each edit will generate a new RevisionVersion, so while you might be specifying a range of 1000 records the actual number returned could be less.

Audit values: supports action name or value

Action name









Specify the record actions you are looking for.

Created = 1

Modified = 2

Deleted = 3

When searching for deleted records you must also pass the deleted search parameter. deleted=1 If you wish to find records which were deleted within a range but are now not deleted you could use deleted=0 or to find restored and deleted records use deleted=2

DateFrom1AuditHistory:{DateFrom:2020-03-21}Get records actioned FROM a specific date, best used when combined with DateTo.
DateTo2AuditHistory:{2:2020-03-21}Get records actioned TO a specific date, best used when combined with DateFrom.
User5AuditHistory:{user:12345}Get records modified by a specific user

Request: /SoutronAPI/catalogues?search=AuditHistory:{user:12345;action:Created;DateFrom:2019-03-21;DateTo:2020-03-21}

<response searchTime="327" sortTime="10" requestTime="491.5206">
	<resultInfo portalView="" searchId="948">
			<contentType caption="All" count="302" seq="0" current="1"/>
			<contentType id="3" caption="Serial" count="278" seq="1"/>
			<contentType id="1" caption="Printed Material" count="24" seq="2"/>
			<recordType id="1" caption="Books" count="24"/>
			<recordType id="28" caption="Issue" count="278"/>
		<record id="405741" type="10" subType="1" rt="1" rtCaption="Books" ct="1" ctCaption="Printed Material" deleted="0" published="1">
				<f id="9" type="1" caption="Title">
						<v id="2561724" seq="1" custom="0">API Download Test</v>
				<f id="51" type="1" caption="Document Type">
						<v value="1" caption="Books"/>

  • No labels