Order attachment

When attachments are added to orders, they are stored in this table.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL nameOrdAttThe table name in the database.
API identifierorderAttachmentThe API identifier used in GraphQL.
Table no.382The table number in the data model.

The following fields exist in this table:

Attachment no.

Within an order, attachments are given a consecutive number, in the order in which they are entered.

Note:
The Attachment no. does not change when inserting new rows between existing ones. The Sort seq. no. specifies the order of the rows and is affected when new rows are inserted between existing rows.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
Primary keyYesOrder no., Attachment no.
SQL nameAttNoThe database field name.
API identifierattachmentNoThe API identifier used in GraphQL.
Number16514 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
Order document attachmentOrderDocumentAttachment
  • Order no.
  • Attachment no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Description

The description of the order attachment.

If the field is empty when adding an attachment, value is suggested from the attachments file name.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainString of length 250Text (250)
SQL nameDescrThe database field name.
API identifierdescriptionThe API identifier used in GraphQL.
Number16516 

File data

The attachment.

The field where the actual attachment is stored. If data is present, the field displays a clip.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainFile in BLOBUnlimited text
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameFileDataThe database field name.
API identifierfileDataThe API identifier used in GraphQL.
Number16526 

File no.

Reference to file stored in File Service.

Automatically set when executing the Attach documents processing. Links to the File archive table, where actual the reference to File Service file is stored.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainFile no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameFlNoThe database field name.
API identifierfileNoThe API identifier used in GraphQL.
Number19685 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
File archiveFileArchive
  • File no.

Order attachment processing

Settings specifying to which order documents the attachment shall be connected.

Note:
Setting and clearing check boxes after the document is printed, does not affect order document copies.
A look-up opens the dialog box where you can see the following check boxes and options:

Attach to order documents

Invoices/credit notes
The attachment will be printed together with invoices/credit notes.
Consignment notes
The attachment will be printed together with consignment notes.
Packing slips
The attachment will be printed together with packing slips.
Pick lists
The attachment will be printed together with pick lists.
Order confirmations
The attachment will be printed together with order confirmations.
Quotations
The attachment will be printed together with quotations.
Purchase orders
The attachment will be printed together with purchase orders.
Approval requests
The attachment will be printed together with Approval request order document types.
Inquiries
The attachment will be printed together with inquiries.
Production orders
The attachment will be printed together with production orders.
Order prints
The attachment will be printed together with order prints.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainOrder attachment processingInteger
SQL nameOrdAttProcThe database field name.
API identifierorderAttachmentProcessingThe API identifier used in GraphQL.
Number16517 

Order attachment type

Specification of the attachments file type.

A look-up in this field gives you the following list of possible values:
1 - PDF document
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainOrder attachment typeInteger
SQL nameFileTpThe database field name.
API identifierfileTypeThe API identifier used in GraphQL.
Number16518 

Order no.

The order to which the attachment is connected.

Foreign key to the Order and Order document tables.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainOrder no.Integer
Primary keyYesOrder no., Attachment no.
SQL nameOrdNoThe database field name.
API identifierorderNoThe API identifier used in GraphQL.
Number16513 
Table 3. Table relations
To tablePurposeFrom columnsTo columnsComments
OrderOrder
  • Order no.
Order document attachmentOrderDocumentAttachment
  • Order no.
  • Attachment no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Sort seq. no.

The order of the lines.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainSort seq. no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameSrtThe database field name.
API identifiersortSequenceNoThe API identifier used in GraphQL.
Number16515 

Source file name

The file name of the attachment.

The source file name without path information.

Tip:
If a value is added to the field double-clicking or pressing * displays the file. If no file is selected a Select file dialog will be opened.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainFile nameText (260)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameSrcFNmThe database field name.
API identifiersourceFileNameThe API identifier used in GraphQL.
Number16519 

Control columns

Control columns include information about who has changed the record last and when, and which process that is currently editing the record.

Changed by provenance

The provenance for the record change.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPvnThe database field name.
API identifierchangedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Changed by user

The name of the user that changed the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChUsrThe database field name.
API identifierchangedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Changed date

The date when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChDtThe database field name.
API identifierchangedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time

The time when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTmThe database field name.
API identifierchangedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time stamp

The date and time when the record was changed.

The field is updated with the UTC time.

This value can be used by external systems to replicate changed data. The column is indexed. 

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTsThe database field name.
API identifierchangedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Created by provenance

The provenance for the record creation.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCrePvnThe database field name.
API identifiercreatedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Created by user

The name of the user that created the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreUsrThe database field name.
API identifiercreatedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Created date

The date when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreDtThe database field name.
API identifiercreatedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Created time

The time when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTmThe database field name.
API identifiercreatedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Created time stamp

The date and time when the record was created.

The field is updated with the UTC time.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTsThe database field name.
API identifiercreatedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Edit status

The current status of the record.

A look-up in this field gives you the following list of possible values:

0 - Unchanged: The record is read, but not changed.

1 - Inserted: The record is new.

2 - Changed: The record is changed.

3 - Deleted: The record is deleted.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainEdit statusInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameLckStThe database field name.
API identifiereditStatusThe API identifier used in GraphQL.
NumberA unique column number. 

Process no

The Process no. from the Active company process table which is currently using or has control of this record.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProcess no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPrcThe database field name.
API identifierlockedByProcessNoThe API identifier used in GraphQL.
NumberA unique column number. 
Table 4. Table relations
To table Purpose From columns To columns Comments
Active company process CompanyProcess Process no. Process no.