# Comment récupérer programmatiquement l external\_id d un sujet

**URL:** <https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914>\
**Category:** Development\
**Created:** [Mars 29, 2023, 10:44 UTC](https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914 "2023-03-29T22:44:36Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![SeanOSullivan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seanosullivan/32/93924_2.png) [@SeanOSullivan](https://meta.discourse.org/u/SeanOSullivan)\
**Post date:** [Mars 31, 2023, 6:00 UTC](https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914/8 "2023-03-31T06:00:28Z")

</div>

.. et voilà, ça passe de « impossible » à « fabuleux » 🙂 .. brillant, ça change la donne pour moi. Il ne m’était pas venu à l’esprit que le modèle serait variable, mais c’est tout à fait logique.

Merci beaucoup, @simon, y compris pour l’élégant extrait de code !

---

_[View the full topic](https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914)._
