CustomContentBase::FetchObject (open)
Get a single object
Syntax
LOADLIB "mod::consilio/lib/contentproviders/customcontent.whlib";
RECORD FUNCTION FetchObject(DATETIME commanddate, STRING groupid, STRING objectid)Parameters
DATETIME commanddateDate when this command (or its oldest ancestor) was issued
STRING groupidThe group the get the list of objects of
STRING objectidIf of the object
Return value
RECORDThe result
document_bodyThe document's body text
RECORD document_fieldsList of fields and values to index (prefix DATETIME fields with "date_")
STRING errorIf the call did not succeed, this cell may contain an error message
indexdateDate of last modification of this object (optional). If not present, the document will always be replaced in the index.
requiredindexdateIf the indexdate of the version of the object currently stored in the index is at least this value, it is kept as-is and not re-fetched. (warning: don't use this if FetchObject returns other objects not returned by this ListObjects, because those objects will not be discovered, and subsequently removed).
STRING status"result" if call succeeded, "error" if an error ocurred, "notfound" if not found