Web Services Developer's Guide → Web Services API Reference → SBM Application Web Services → Application Calls → GetFileField
This service returns a list of files from a specified File field on an item.
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. |
includefile (optional) | boolean | Controls whether or not the file contents are included with the response. Default is false. |
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.
Set includefile to false to return metadata about the files and not the file contents.
Use one or more fileIdentifier arguments to return specific files from a File field instead of all files. If you do not include fileIdentifier to limit the response, all files are returned.
The following XML is a snippet of the payload that is sent with GetFileField.
<urn:GetFileField> <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>1</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:includefile>true</urn:includefile> <urn:fileIdentifier> <urn:displayName></urn:displayName> <urn:id>15</urn:id> <urn:uuid></urn:uuid> </urn:fileIdentifier> <urn:fileIdentifier> <urn:displayName></urn:displayName> <urn:id>16</urn:id> <urn:uuid></urn:uuid> </urn:fileIdentifier> </urn:GetFileField>
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.