Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do you add a responses doclink to a parent document?

0
10 Posted

How do you add a responses doclink to a parent document?

0

Sub PlaceDocLinkInParent (rdoc As NotesDocument) REM “NOTE” rdoc is supposed to be the response document that you want the REM Doc Link for. As I said above, I will assume you have obtained this and REM just need to call this procedure to place the doc link. Dim sess As New NotesSession Dim db As NotesDatabase Dim pdoc As NotesDocument Dim m_unid As String Dim rt As NotesRichTextItem Set db = sess.CurrentDatabase m_unid$ = rdoc.ParentDocumentUNID Set pdoc = db.GetDocumentByUNID(m_unid$) Set rt = New NotesRichTextItem(pdoc, “DocLinkField”) Call rt.AppendDocLink(rdoc, “Link To Reponse Document”) Call pdoc.Save(True, False) End Sub Basically, this script gets the parent unid from the response, then gets the parent document with the GetDocumentByUNID method, creates a new rich text field in the parent and places a doc link in it. How do you track who changed a critical field? If you want to add an audit trail of the modifications made to a critical field named “PRIORITY” it can be done wit

0
10

Sub PlaceDocLinkInParent (rdoc As NotesDocument) REM “NOTE” rdoc is supposed to be the response document that you want the REM Doc Link for. As I said above, I will assume you have obtained this and REM just need to call this procedure to place the doc link.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123