Web Services Developer's Guide → Web Services API Reference → SBM Application Web Services → Application Calls → UpdateFileField
This service updates a specified File field on an item using a specified transition.
Argument | Type | Description |
---|---|---|
auth (optional) | Auth | The Auth type supplies credentials and optionally, a host name for licensing. The userId and password can be specified with HTTP BASIC or WS-SECURITY instead. |
itemId (required) | ItemIdentifier | Specifies the item that contains the File field. |
fieldId (required) | FieldIdentifier | Specifies the File field. |
transitionId (optional) | TransitionIdentifier | Specifies the transition to use to update the File field. If not specified, the system Update transition is used. |
deleteAll (optional) | boolean | Clears the contents of a File field. Default is false. If set to true, all other settings in the call are ignored. |
breakLock (optional) | boolean | Determines if the transition should run regardless if an item is locked or not. Default is true. |
alwaysTrans (optional) | boolean | If set to true, this runs the transition even if the File field was not changed. Default is false. |
includefile (optional) | boolean | Controls whether or not the file contents are included with the response. |
fileObject (optional) | Holds identification for one or more files and enables you to add, update, or delete files in the File field. | |
fileIdentifier (optional) | Identifier | Holds generic information about a file. Used to specify which files to return if there are multiple files. |
FieldObjectResponse is returned. See FieldObjectHolder.
This call updates a File field within the scope of a transition.
Set includefile to false to return metadata about the files and not the file contents.
Use fileObject to add, update, or delete specific files in the specified File field. See FileObj.
The following XML is a snippet of the payload that is sent with UpdateFileField.
<urn:UpdateFileField> <urn:auth> <urn:userId>bill</urn:userId> <urn:password></urn:password> <urn:hostname></urn:hostname> <urn:loginAsUserId></urn:loginAsUserId> </urn:auth> <urn:itemId> <urn:displayName></urn:displayName> <urn:id>140</urn:id> <urn:uuid></urn:uuid> <urn:tableId>1012</urn:tableId> <urn:tableIdItemId></urn:tableIdItemId> <urn:issueId></urn:issueId> </urn:itemId> <urn:fieldId> <urn:displayName></urn:displayName> <urn:id></urn:id> <urn:uuid></urn:uuid> <urn:dbName>MULTI_FILE</urn:dbName> </urn:fieldId> <urn:transitionId> <urn:displayName></urn:displayName> <urn:id></urn:id> <urn:uuid></urn:uuid> <urn:internalName></urn:internalName> </urn:transitionId> <urn:deleteAll>false</urn:deleteAll> <urn:breakLock>true</urn:breakLock> <urn:alwaysTrans>false</urn:alwaysTrans> <urn:includefile>true</urn:includefile> <urn:fileObject> <urn:id></urn:id> <urn:uuid></urn:uuid> <urn:name>sample text</urn:name> <urn:action>NEW-UPDATE</urn:action> <urn:filename></urn:filename> <urn:contentsBase64> <urn:data>SGVsbG8gV29ybGQ=</urn:data> </urn:contentsBase64> </urn:fileObject> <urn:fileIdentifier> <urn:displayName>sample text</urn:displayName> <urn:id></urn:id> <urn:uuid></urn:uuid> </urn:fileIdentifier> </urn:UpdateFileField>
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.