Hitachi Content Platform​

 View Only

 Is there a possibility, that the HCP Anywhere Outlook Plug-in could be changed to insert links at the currrent cursor position, as opposed to at the top of the e-mail?

  • Object Storage
  • Hitachi Content Platform HCP
  • Hitachi Content Platform HCP Anywhere
Bjarne Hansen's profile image
Bjarne Hansen posted 08-20-2019 10:57

Example VBA code: feel free to use :)

 

Sub InsertHyperlinkAtCursorPositon()

  On Error GoTo finish

  strLink = "insert actual link here"

  strLinkText = "text description of the link"

  Set objInsp = Application.ActiveInspector

  Set objMsg = objInsp.CurrentItem

  Set objDoc = objInsp.WordEditor

  Set objSel = objDoc.Windows(1).Selection

  If objMsg.BodyFormat <> olFormatPlain Then

    objDoc.Hyperlinks.Add objSel.Range, strLink, _

               "", "", strLinkText, ""

  Else

    objSel.InsertAfter strLink

  End If

finish:

End Sub

 


#HitachiContentPlatformHCP
#HitachiContentPlatformHCPAnywhere
Avijit Sikder's profile image
Avijit Sikder

The current design is to make sure that user can find the links to attachments easily by putting them at the top of the email similar to the actual attachments. This is an enhancement request. We will create an AHA idea and review the priority.