You can customize Teams fields by using a field groups control on the source table or by using events. You can also combine the two methods to achieve the results that you want.
The main metadata elements for displaying fields in Teams are the Brick field group, together with the page and field captions. However, with the lack of a Brick field group on a table, the Dropdown field group and primary keys play a role in determining the fields that display.
Although we recommend it, a Brick field group isn't required to display a card in Teams. Lacking a Brick field group, the app falls back to use either DropDown field group or the primary key fields of on the source table, according to the following flow:
If a Brick field group exists, the app uses the fields specified by the Brick field group.
If a Brick field group doesn't exist, the app uses fields that are defined in Dropdown field group.
If Dropdown field group doesn't exist, then the primary key fields and fields called Name or Description in the table are used.
The app arranges fields on cards in Teams based on one of two templates, depending on whether a media field is included in the Brick field group. Except media data type fields, the order of fields on the card is determined by the field order in the Brick field group. You can't reposition fields, add new controls like actionable buttons, or change the overall style of a card.
The two templates and how they order fields depend on the following.
With media:
Without media:
By default, the fields that display on a card in Teams are based on the Brick field group that's defined on a page's source table. The Brick field group is the same element that determines which fields display with records in list pages viewed as tiles in the client. So you have to keep it in mind when designing for Teams.
Use the Brick field group to identify a subset of table fields that best summarize a record. Typically, you include fields that allow users to quickly identify the record and give insight about the record at a glance.
The following code is snippet of Brick field group on a table:
fieldgroups
{
fieldgroup(Brick; field[, field][, field])
{
}
}
This code example adds a simple table and card page. The Brick field group specifies which fields of the table display in a Teams card, as illustrated by the following figure: