# How to add hidden ID in a Dynamic Content Macro?

**URL:** <https://community.developer.atlassian.com/t/how-to-add-hidden-id-in-a-dynamic-content-macro/8067>\
**Category:** Confluence Cloud\
**Tags:** macro, confluence-cloud, atlassian-connect\
**Created:** [August 31, 2017, 4:02pm UTC](https://community.developer.atlassian.com/t/how-to-add-hidden-id-in-a-dynamic-content-macro/8067 "2017-08-31T16:02:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.knight](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@thomas.knight](https://community.developer.atlassian.com/u/thomas.knight)\
**Post date:** [August 31, 2017, 4:02pm UTC](https://community.developer.atlassian.com/t/how-to-add-hidden-id-in-a-dynamic-content-macro/8067/1 "2017-08-31T16:02:53Z")

</div>

Dynamic content macros have the option to have ‘hidden’ values that don’t appear in the data, as documented here: [https://developer.atlassian.com/static/connect/docs/latest/modules/fragment/macro-input-parameter.html](https://developer.atlassian.com/static/connect/docs/latest/modules/fragment/macro-input-parameter.html)

I would like to add a random, hidden ID. This is because the macro.id changes any time the macro is edited, and I want to have a reliable way to lookup a specific macro within our database.

How would I go about creating and setting a hidden ID with Atlassian Connect?
