# Access Deployment Id from script

**URL:** <https://hub.mender.io/t/access-deployment-id-from-script/1319>\
**Category:** General Discussions\
**Created:** [December 4, 2019, 3:15pm UTC](https://hub.mender.io/t/access-deployment-id-from-script/1319 "2019-12-04T15:15:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alberto-brigandi](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alberto-brigandi/32/444_2.png) [@alberto-brigandi](https://hub.mender.io/u/alberto-brigandi)\
**Post date:** [December 4, 2019, 3:15pm UTC](https://hub.mender.io/t/access-deployment-id-from-script/1319/1 "2019-12-04T15:15:15Z")

</div>

Hi,  
Is there any way to obtain the current deployment id value from statescript and/or custom update module?

Thanks,  
Alberto

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [December 4, 2019, 6:13pm UTC](https://hub.mender.io/t/access-deployment-id-from-script/1319/2 "2019-12-04T18:13:02Z")

</div>

Hi Alberto, welcome to Mender Hub.

I don’t believe that information is available on the client as it is really only useful to the server side. What use case are you envisioning that would require that?

Drew
