Table

CompanyImage

Company images

Stores images for a company, such as the company logo, dashboard banner or dashboard logo. Each image is identified by the company, the record it refers to and the image type.

Table name
CompanyImage
Module
General ledger
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RefIdx
Replacement key
None
Key fields
RefCompanyId, RefTableId, RefRecId, ImageType
Model
ApplicationPlatform

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RefCompanyIdCompany that the image belongs to.String
SelectableDataArea
YesNone
RefTableIdID of the table the image refers to, which is the legal entity table.Integer
RefTableId
YesNone
RefRecIdRecord ID of the record the image refers to, which is a legal entity.Int64
RefRecId
YesNone
ImageTypeKind of image: company logo, dashboard banner or dashboard logo.Enum
CompanyImageType (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
HasImageYes/No flag showing whether an image is present.Enum
NoYes (enum)
NoNone
ImageThe image itself, held as binary data.Container
Bitmap
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

Each relation joins CompanyImage to another table on the fields shown.

  • DataArea → DataArea

    Join on RefCompanyId = DataArea.id, DataArea.isVirtual = null

    Many CompanyImage records → exactly one DataArea record

  • CompanyInfo → CompanyInfo

    Join on RefTableId = CompanyInfo.TableId, RefRecId = CompanyInfo.RecId

    Many CompanyImage records → zero or one CompanyInfo record

Get this data out

No public entity reads from CompanyImage. Its data is only reachable through the application, a custom entity or a database export.

Need help with CompanyImage in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk