GetAttachmentData
This function gets specified parameter of the currently selected attachment.
Syntax
GetAttachmentData("fieldTitle","paramName");
Function arguments
- fieldTitle – (String) Name of the case field containing attachment or name of case attachment.
- paramName – (String) The name of the parameter that is to be retrieved from attachment. Allowed values: [ id | createddate | createdbyid | createdbylogin | modifieddate | modifiedbyid | modifiedbylogin | name | extension | isexternal | externallink | version | size | ocrid | ocrstate | ocrpagecount | ocrresponse | hash | pagecount]
Return value
This function returns String.
Returns the value of specified parameter from the file attached in specified case field or the case attachment list.
WARNING! In case of passing not existing parameter name, this function throws an exception registered in the system log and stops rule execution.
Examples
Example 1:
This returns the extension of attachment from current case’s 'AttachmentField1′ field.
attextension = GetAttachmentData("AttachmentField1","extension");