# Do XD files have a unique identifier?

**URL:** <https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175>\
**Category:** UXP Plugin API\
**Created:** [August 21, 2019, 5:23pm UTC](https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175 "2019-08-21T17:23:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonfontanez](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jonfontanez/32/126_2.png) [@jonfontanez](https://forums.creativeclouddeveloper.com/u/jonfontanez)\
**Post date:** [August 21, 2019, 5:23pm UTC](https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175/1 "2019-08-21T17:23:26Z")

</div>

**Use Case**  
My plugin is used to share artboards in a collaborative whiteboard (similar to invision freehand). I’d like to allow two designers who have made copies of the same XD file (or maybe sharing different revisions in a cloud drive) click my plugin and all of their changes would be shared in the same whiteboard. I’m wondering if XD creates a unique identifier when a new project / design is created that can be read by a plugin. The ID would need to be the same regardless of whether someone has a different revision.

Alternatively the other approaches I’ve considered:

- Adding metadata to artboards
- Having a dialog appear when you click share to ask the user where they want it to go (not ideal since you could be a guest / non-authenticated user).

Thanks!

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [August 21, 2019, 5:28pm UTC](https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175/2 "2019-08-21T17:28:42Z")

</div>

Hi @jonfontanez,

See this: [Document ID](http://forums.creativeclouddeveloper.com/t/document-id/1140/7)

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [August 7, 2020, 6:54pm UTC](https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175/3 "2020-08-07T18:54:56Z")

</div>

Is a Document ID globally unique?

[https://adobexdplatform.com/plugin-docs/reference/application.html#module\_application-activeDocument](https://adobexdplatform.com/plugin-docs/reference/application.html#module_application-activeDocument)

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [August 8, 2020, 1:41pm UTC](https://forums.creativeclouddeveloper.com/t/do-xd-files-have-a-unique-identifier/1175/4 "2020-08-08T13:41:22Z")

</div>

> **[Are UUIDs really unique?](https://towardsdatascience.com/are-uuids-really-unique-57eb80fc2a87)**
>
> UUID stands for universally unique identifier. It looks like a 32-character sequence of letters and numbers separated by dashes. Some…

Except for the fact that copying a file locally means the copy has the same document ID, in theory all document IDs should be globally unique.

In practice, the chance of a plugin seeing the same document ID for two different documents has to be zero.
