Documentation Center

DocumentObj 2.0 CreateOrUpdate [deprecated]

Updates or possibly even creates objects. Its typical usage is to import an object.


Parameters

NameTypeDirectionDescription
psAuthContextStringInOutDeprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services making this parameter redundant.
psFolderIdStringInThe id of the folder under which the object has to be created
peISHTypeeISHTypeInThe type of the object that is created
psDocIdStringInOutThe logical identifier of the object
psVersionStringInOutThe version of the object. When no exact version is given, the version number will be returned.
psLngStringInThe (working) language of the object
psResolutionStringInThe resolution of the object. Only used for illustrations, for other object types this parameter has to be empty
psInitialStateStringInThe status used when creating a new language object. This value can be overruled when a FSTATUS value is given in the accompanied psXMLMetaData.
psXMLMetaDataStringInMetadata XML structure with the metadata that will be set on the current object
psXMLRequiredCurrentStateStringInA Metadata XML structure. The update of the object is only carried out when the object in Content Manager has exactly the same metadata specification, i.e. the metadata was not changed by someone else.
psEdtStringInThe unique identifier of the electronic document type
pbDataBlobInThe object content

Requirements are:
  • Depending on the input values this call will either forward your request to the Create or Update functions.
Some scenarios are:
  • When parameter psVersion holds an exact version value:
    • the version is created when the object identified by psDocId does not exist yet.
    • the version is updated when the object and version identified by psDocId and psVersion already existed.
  • When parameter psVersion holds a keyword value:
    • the new or empty ('') value will trigger the creation of a new version.
    • the latest value will trigger an update on the latest available version.