Loading
Salesforce now sends email only from verified domains. Read More
Vlocity Contract Lifecycle Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Dynamic Hyperlinks for Client-Side Document Generation

          Dynamic Hyperlinks for Client-Side Document Generation

          Using hyperlink tokens in Microsoft Word or Microsoft PowerPoint document templates, you can insert dynamic URLs in generated .docx and .pdf files. For example, with dynamic hyperlink tokens, you can insert a hyperlink for every product ordered that directs you to the product specification web page.

          The hyperlink token must start with HYP_. The token format is {{HYP_<hyperlinktokenname>}}, for example, {{HYP_Salesforce Website}}. Place hyperlink tokens anywhere within a document template, such as in paragraphs, tables, and text boxes. Use a token in a header or footer or within a repeating content section to pass an array of hyperlinks. A text for the URL can be defined in the Omnistudio Data Mapper, for example, Salesforce. If a text isn’t provided for the hyperlink, the URL appears blue and underlined in the generated document, for example, https://www.salesforce.com.

          The hyperlink tokens support right-to-left languages. The font and the style of the hyperlink token in the document overrides the default hyperlink font and style in the generated document. Hyperlink tokens support URL formats such as https and http. Hyperlinks can pass through the rich text tokens using Data Mapper Transform, Custom Class, and Omniscripts.

          Dynamic hyperlinks have several use cases:

          • In a generated B2B insurance policy, a hyperlink that takes you to the corporate web page of the company.

          • In a generated quote, a hyperlink for every product ordered that directs you to the product specification web page. Hyperlinks for products are stored in Salesforce.

          The image shows an example of a Word document with a list of products, their names, and their images. For each product, a dynamic hyperlink is inserted that takes you to the product web page.

          The image shows an example of a Word document with a list of products, their names, and their images. For each product, a dynamic hyperlink is inserted that takes you to the product web page.
          • Create Custom Hyperlink Fields in your Object
            You can create a custom text field in any object (standard or custom). You must map the text field in your object using Omnistudio Data Mappers to render the hyperlinks in the generated document.
          • Add Hyperlink in Text Field
            After you’ve created a custom text field in your desired object, you must add the hyperlink to the custom text field. Using Omnistudio Data Mapper you can render the hyperlink in the generated document.
          • Map Hyperlink Tokens in the Omnistudio Data Mappers
            Using hyperlink tokens in the Microsoft Word or Microsoft PowerPoint document templates, you can insert dynamic URLs in the generated .docx and .pdf files.
           
          Loading
          Salesforce Help | Article