# Store custom code output in a secret variable.

**URL:** <https://community.hubspot.com/t/store-custom-code-output-in-a-secret-variable/127301>\
**Category:** HubSpot Ideas\
**Tags:** workflows\
**Created:** [March 4, 2025, 5:27pm UTC](https://community.hubspot.com/t/store-custom-code-output-in-a-secret-variable/127301 "2025-03-04T17:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebasWBN](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@SebasWBN](https://community.hubspot.com/u/SebasWBN)\
**Post date:** [March 4, 2025, 5:27pm UTC](https://community.hubspot.com/t/store-custom-code-output-in-a-secret-variable/127301/1 "2025-03-04T17:27:37Z")

</div>

Right now the value of a secret can only be manually set, and we are not able to update or write this value from a custom function or any other form of automation.

It would be great to see a feature that allows storing and updating temporary tokens in a secure way, without having to request a token during each workflow execution.

This would be extremely useful for 3rd party applications that grant tokens with a short lifetime, and limit how many tokens we can request per hour.
