# topics 的新 \`external\_id\` 功能是用来做什么的？

**URL:** <https://meta.discourse.org/t/what-is-the-new-external-id-feature-for-topics-used-for/218203>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2022年二月15日 05:05 UTC](https://meta.discourse.org/t/what-is-the-new-external-id-feature-for-topics-used-for/218203 "2022-02-15T05:05:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年十月3日 06:02 UTC](https://meta.discourse.org/t/what-is-the-new-external-id-feature-for-topics-used-for/218203/9 "2023-10-03T06:02:35Z")

</div>

你好 Aaron 🙂  
无需在多个地方发布相同的问题。让我们继续讨论你最初的话题 👍

> [@Expose external\_id in embed.js](https://meta.discourse.org/t/expose-external-id-in-embed-js/280834?u=canapin):
>
> I am needing to load posts on an external site where I don’t know the post\_id but I DO know the external\_id that I configured when I created the topic. Can someone please expose the external\_id variable in the embed.js logic or teach me what I’m missing? Example support needed: window.DiscourseEmbed = { discourseUrl: ‘[https://forums.blah.org/](https://forums.blah.org/)’, external\_id: ‘2023-4’ };

---

_[View the full topic](https://meta.discourse.org/t/what-is-the-new-external-id-feature-for-topics-used-for/218203)._
