Possible to retrieve form name from doclink?

Hello,

I have a database with several types of forms. I am trying to figure out if there is a way to programmatically determine the form name of a doclink. For example, in my Notes document which uses “Form A”, I have several doclinks to Notes documents that use “Form B”. Is there a way through code that I can get the form name (in this example “Form B”) through the doclink?

I tried using the RichTextDocLink class but this only allowed me to see the document/view IDs and the view/document name.

Subject: So then just access the document properties…

Pass the value of the DocUNID property to the GetDocumentByUNID method to get the Notes document then examine the Form field value