Hyperlinks and Bookmarks

The Encodian population engine supports dynamic hyperlink and bookmark generation.

Insert a Hyperlink

Example Document: Encodian - Template Syntax - Links.docx

Example JSON Data:

{
"companyName": "Encodian",
"linkUrl": "https://www.encodian.com",
"linkDisplay": "Encodian Website"
}

The link token requires two parameters, the URL and display text, see below:

<<link[linkUrl][linkDisplay]>>

mceclip1.png

This generates the following output:

mceclip0.png

Insert a bookmark

Example JSON data

{
    "bookmark_expression":  "Bookmark",
    "bookmarkDisplay":      "My Bookmark"
}

The bookmark token requires one parameter; the bookmark_expression.

<<bookmark [bookmark_expression]>>
I need to easily find this piece of text later
<</bookmark>>

Bookmark1.png

This generates the following output

Bookmark2.png

The link token can be paired with the bookmark token to create a visible link in the document to the bookmark. It requires two parameters the bookmark expression (this links it with the bookmark token) and the display text:

<<link [bookmark_expression][bookmarkDisplay]>>

bookmark3.png

This generates the following output

bookmark4.png

Notes: The words within the square brackets [] are just text and can be changed (provided your JSON is also changed) this will be required if you are going to create more than one bookmark within the same document. i.e instead of [bookmark_expression] you have [expression1], [expression2] etc

 

 

 

 

 

 

Have more questions? Submit a request

7 Comments

  • 0
    Avatar
    Kurt Kamletz

    Thanks for your instructions, total life saver yesterday!

     

    Follow-up question. 

    The instruction above shows how to create a Hyperlink by passing in the URL and display text.

    Is there a way to pass in only the URL when the display text is static and already defined in the document?

  • 0
    Avatar
    Roy Simmons

    Hello Kurt,

    From what I tested you would use a combination with a Variable syntax to apply a static text with the URL and then you can simply pass the url in the json.
    The example below shows how it works and the result.

  • 0
    Avatar
    Luca Georg

    Hi everybody, i have a quastion. Is it also with more than one link possible? 

    For example:

    {
    "companyName1": "x",
    "linkUrl1": "x",
    "linkDisplay1": "x",
    "companyName2": "x",
    "linkUrl2": "x",
    "linkDisplay2": "x
    }
  • 0
    Avatar
    Roy Simmons

    HI Luca,

    The following Json example can put more then 1 link it would be written like the example below

    If you want to pass a Array of Url links you need to follow the foreach syntax which examples can be found in the article below.
    Repeating Content – Encodian Customer Help

  • 0
    Avatar
    Luca Georg

    Hi Roy,

    thank you for your fast response.

    So that is wrong??

     

  • 0
    Avatar
    Roy Simmons

    Hi Luca,

    No worries your Json is not correctly formatted as you are missing " Double quotes " in your reference you can check this only with a Json Formatter.
    This will cause a Error if you are encountering errors we recommend to Follow the article below and email support@encodian.com
    Power Automate Run History - Inputs and Outputs — Encodian

  • 0
    Avatar
    Luca Georg

    Hi Roy, thank you. It work!

Please sign in to leave a comment.
Powered by Zendesk