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 | hash ]

Return value

This function returns String.
Returns the value of specfied parameter from attachment choosen in specified case field or case attachment.

Examples

Example 1:
This returns the extension of attachment from current case’s 'AttachmentField1′ field.

attextension = GetAttachmentData("AttachmentField1","extension");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.