Page tree

REST - AttachInfo

The EWAttachInfo operation returns information about the attachments of a record in a particular field.

  • Returns: the position, name, and size for each file in the field.
  • Supported Content-Type: application/x-www-form-urlencoded
  • Accepts a URL with URL-encoded parameters and record data. For more information about general URL conventions, see REST Interface.

Example

Use the AttachInfo call to get information about files attached to records. The AttachInfo call requires you to input information in the URL about your KB, the logical name of the table you plan on accessing, the logical name of the field, your login, your password, and record ID.

Here is an example URL:

https://integration-1.cf/ewws/EWAttachInfo/.json?$KB=example_KB&$table=company&$lang=en&field=attached_file&$login=example_login&$password=example_password&id=1

An example return is as follows:

{
    "success": true,
    "message": "",
    "result": [
        {
            "fileName": "Contract Title",
            "size": 22126,
            "filePosition": 0
        }
    ]
}
CONTENTS