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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RefCompanyIdCompany that the image belongs to. | StringSelectableDataArea | Yes | None | |
RefTableIdID of the table the image refers to, which is the legal entity table. | IntegerRefTableId | Yes | None | |
RefRecIdRecord ID of the record the image refers to, which is a legal entity. | Int64RefRecId | Yes | None | |
ImageTypeKind of image: company logo, dashboard banner or dashboard logo. | EnumCompanyImageType (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
HasImageYes/No flag showing whether an image is present. | EnumNoYes (enum) | No | None | |
ImageThe image itself, held as binary data. | ContainerBitmap | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
RefIdxPrimary indexRefCompanyId,RefTableId,RefRecId,ImageTypeUnique, alternate key.
Relations (2)
Each relation joins CompanyImage to another table on the fields shown.
DataArea→DataAreaJoin on
RefCompanyId = DataArea.id,DataArea.isVirtual = nullMany CompanyImage records → exactly one DataArea record
CompanyInfo→CompanyInfoJoin on
RefTableId = CompanyInfo.TableId,RefRecId = CompanyInfo.RecIdMany 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.