# Retrieve values from another module in programmable email

**URL:** <https://community.hubspot.com/t/retrieve-values-from-another-module-in-programmable-email/92567>\
**Category:** CMS Development\
**Created:** [October 25, 2023, 12:26pm UTC](https://community.hubspot.com/t/retrieve-values-from-another-module-in-programmable-email/92567 "2023-10-25T12:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SStrachan1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@SStrachan1](https://community.hubspot.com/u/SStrachan1)\
**Post date:** [October 25, 2023, 12:26pm UTC](https://community.hubspot.com/t/retrieve-values-from-another-module-in-programmable-email/92567/1 "2023-10-25T12:26:33Z")

</div>

I have created an email template and am calling a module that I want to be able to get values from for use in other modules. I’ve set export\_to\_template\_context=True

`{% module "module_169823584445580" path="/Manual Templates/Global Modules/SETTINGS", label="SETTINGS", export_to_template_context=True %}`

The “module\_169823584445580” changes when the page refreshes.  
When I use on another module I am calling it like this:

```lia-code-sample
{% set p = '?b='~widget_data.{% set p = '?b='~widget_data.module_169823579643778.Settings.broker_section.broker_picker.properties.url|split('/')|last %}.Settings.broker_section.broker_picker.properties.url %}
{{ p }}

```

1. how does this work when the module id always changes  
2. When calling the module I want data from, is it case sensitive? is it the name or the label? Do I need to replace spaces with an \_?

What is the right way to do this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 26, 2023, 8:17pm UTC](https://community.hubspot.com/t/retrieve-values-from-another-module-in-programmable-email/92567/2 "2023-10-26T20:17:39Z")

</div>

Hi, @SStrachan1 👋 Thanks for the great question. Let’s invite some community members to the conversation — hey @Teun @SStrachan1 @louischausse, do you have any recent experience here?

Thank you very much! — Jaycee
