WordJS / OfficeJS how to get a unique identifier for a paragraph


How to get get unique id for a paragraph in WordJS. There are 2 not-documented fields. _Id is always 0 and _ReferenceId is changed each time when I get paragraph. Or is there a way to store my custom property for paragraph?

 _Id: number;
 _ReferenceId: string;

There are in fact these non-document fields, but both are temporary, and neither should be used.

The best way to capture a particular paragraph is via a content control or a binding object (which effectively creates a content control for you).