Table of Contents

API - Doc. Attachments

This is a fork of page 30080 "APIV2 - Attachments" from version 27.0.38460.40573. Added support for Extra Fields.

Object Definition

Object TypePage
Object ID70314212
Object NameQWESR API - Doc. Attachments
Source TableAttachment Entity Buffer

API Definition

APIPublishersmartApps
APIGroupspider
APIVersionv1.0
EntitySetNamedocumentAttachments
EntityNamedocumentAttachment

Events

Name Description
OnAfterInsert(Record "Attachment Entity Buffer"; Record "Document Attachment"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) Raised after a record is inserted.
OnAfterModify(Record "Attachment Entity Buffer"; Record "Document Attachment"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) Raised after a record is modified.
OnGetExtraValues(Record "Attachment Entity Buffer"; Record "Document Attachment"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised after a record is read from the database. Makes it possible to set the ExtraValues 1..10, to be returned to the client.

Controls

Type Name Data Type Read-only
Field id Guid Yes
Field fileName Text[250]
Field byteSize Integer Yes
Field attachmentContent Blob
Field parentType Enum "Attachment Entity Buffer Document Type"
Field parentId Guid
Field lineNumber Integer
Field documentFlowSales Boolean
Field documentFlowPurchase Boolean
Field lastModifiedDateTime DateTime Yes
Field extraValue1 Text
Field extraValue2 Text
Field extraValue3 Text
Field extraValue4 Text
Field extraValue5 Text
Field extraValue6 Text
Field extraValue7 Text
Field extraValue8 Text
Field extraValue9 Text
Field extraValue10 Text

This documentation is generated from Spider v27.2