Why does the documentIdentifier field in AttachmentUpload.PropsType hold a value as a docRef?

Hi everyone,

I’m currently in the process of upgrading our app from A12 v2022.06 to A12 v2023.06. My question is related to the documentIdentifier field in AttachmentUpload.PropsType.

Why does the documentIdentifier field hold a value as a docRef? For example, if I have a docRef like ‘DomainABC/123’, I would expect the value of documentIdentifier to be ‘123’ rather than ‘DomainABC/123’

Hi, docRef and documentIdentifier are the same thing - identifiers of documents. In A12 (client-side), we treat them as “opaque” strings, i.e. we don’t assume any structure. This is done to support different persistences.