# How do i set href content in activity templates using a export defintion?

**URL:** <https://community.novulo.com/t/how-do-i-set-href-content-in-activity-templates-using-a-export-defintion/451>\
**Category:** \[Q&A\] Components, Datasets and Plug-ins\
**Created:** [August 19, 2024, 12:19pm UTC](https://community.novulo.com/t/how-do-i-set-href-content-in-activity-templates-using-a-export-defintion/451 "2024-08-19T12:19:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeyarE](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@SeyarE](https://community.novulo.com/u/SeyarE)\
**Post date:** [August 19, 2024, 12:19pm UTC](https://community.novulo.com/t/how-do-i-set-href-content-in-activity-templates-using-a-export-defintion/451/1 "2024-08-19T12:19:21Z")

</div>

I’ve been attempting to insert LinkedIn URLs of users into an `href` attribute by using an export definition within a content block. The goal is to pull the URLs from the corresponding field on the connections page. However, the issue is that the `%%` export definition doesn’t seem to work within `href` attributes.

Is there a workaround for this, or is this functionality not currently supported?

—SOLVED—  
Solution: when using a exportdefinition for hyperlinks don’t use hyphens within the export definition title. Instead use a linedash, for example website\_url.

---

<div class="post-metadata">

**Author:** ![Wim](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@Wim](https://community.novulo.com/u/Wim)\
**Post date:** [August 19, 2024, 3:52pm UTC](https://community.novulo.com/t/how-do-i-set-href-content-in-activity-templates-using-a-export-defintion/451/2 "2024-08-19T15:52:44Z")

</div>

I tried to reproduce this in a small test application, and for me it seems to work.

I created an activity template (of type e-mail) and added a content block template with the following HTML:

```auto
<p>Plain URL: %url%</p>
<p>URL in a link with text: <a href="%url%">klik hier</a></p>
<p>URL in a link with the url as text: <a href="%url%">%url%</a></p>

```

In linked an export definition with a dataset of type `activitycontentblocks` and a single field called `url` with the following expression: `this.activity.contact.organization().website`.

Creating an activity using this template yields the following result:  
 ![image](https://canada1.discourse-cdn.com/flex008/uploads/novulo/original/1X/1e04453b40c80b2c2db0daf33a6ac5cbb371225c.png)

Is your scenario different from what I tried to do?

---

<div class="post-metadata">

**Author:** ![SeyarE](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@SeyarE](https://community.novulo.com/u/SeyarE)\
**Post date:** [September 5, 2024, 8:11am UTC](https://community.novulo.com/t/how-do-i-set-href-content-in-activity-templates-using-a-export-defintion/451/3 "2024-09-05T08:11:23Z")

</div>

Hi Wim. Thanks for your help! The issue was caused by my lack of HTML knowledge. The problem was that i named the exportdefinition %Linkedin-URL%. I later found out that HTML hrefs’ require you to use lower dashes instead of hyphens.
