Data collection through relationships

We have instruction document class with template including some automatic fields of metadata. We have also CAPA object type related to the specific instruction (property relate to instructions) with unique code identifier.  Is it possible to collect CAPA codes to the instruction as automatic field, because now we have to collect all CAPA codes to the document manually? It is possible if there would be property related to the CAPA on document metadata, but CAPA is related to the document in this case.

Parents Reply Children