Skip to content Skip to main navigation Skip to footer

Group items in a related list based on the value of a specifiable field

Example Use Case:

I would like the ability to group items in a related list based on the value of a specifiable field when generating a document.
For example, I have 4 records on a related list and I print them to a document:

Record 1
Record 2
Record 3
Record 4

But let’s say there is a field on each record called Team with two values, “Team A” and “Team B”. If Records 1 and 2 have “Team A” in this field and Records 3 and 4 have “Team B” in this field, would it be possible to group these records by this field so the output to the document would look like:

Team A
Record 1
Record 2
Team B
Record 3
Record 4

Thereby the records are all group by the value of a specific field. How can I configure this use case?

You can split the merge of the related lists with a filter on the group. You can also develop a sorting of the related list to sort by the group.