---
schema_version: "1"
id: b13bbe480c7dbba9d5f6e4cc519e914413fb5db93703351b487fa771a741bb38
title: Dynamic Hyperlinks for Server-Side Document Generation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/doc_gen_dynamic_hyperlinks_for_server-side_document_generation.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.doc_gen_dynamic_hyperlinks_for_server-side_document_generation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cc1c46cd823a9bdb41627e2dbfa7ec8cfa55d561d154f438dcf616b7af71a9f0
description: Use hyperlink tokens in Microsoft Word or Microsoft PowerPoint document templates to 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.
products:
  - Omnistudio Doc Gen
release: "264"
---
# Dynamic Hyperlinks for Server-Side Document Generation

Use hyperlink tokens in Microsoft Word or Microsoft PowerPoint document templates to 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 link 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 a footer or within a repeating content section to pass an array of hyperlinks. You can define a text for the URL in the Omnistudio Data Mapper, for example, Salesforce. If a text isn't provided for the hyperlink, the URL appears in 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 by 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.

![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.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-document_generation-264-0-0-production-enus/f76d5573-56ce-4576-b4b2-7a4f1f2e622b/resources-product/images/doc_gen/doc_gen_serverside_dynamichyperlinks_1.png)

#### See Also

- [Create Custom Hyperlink Fields for Your Object in Omnistudio Document Generation](https://help.salesforce.com/s/articleView?id=ind.doc_gen_create_custom_hyperlink_fields_in_your_object.htm&type=5&language=en_US)
- [Map Hyperlink Tokens in Omnistudio Data Mapper for Omnistudio Document Generation](https://help.salesforce.com/s/articleView?id=ind.doc_gen_map_hyperlink_tokens_in_the_dataraptors.htm&type=5&language=en_US)