# Dynamic StoragePath

**URL:** <https://forum.flow.com/t/dynamic-storagepath/3195>\
**Category:** New To Flow\
**Tags:** cadence\
**Created:** [June 5, 2022, 4:18pm UTC](https://forum.flow.com/t/dynamic-storagepath/3195 "2022-06-05T16:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoninX](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@RoninX](https://forum.flow.com/u/RoninX)\
**Post date:** [June 5, 2022, 4:18pm UTC](https://forum.flow.com/t/dynamic-storagepath/3195/1 "2022-06-05T16:18:23Z")

</div>

Hi guys,  
I’m new to Flow but in the docs [here](https://docs.onflow.org/cadence/language/accounts/#path-functions), I can see there are certain utility functions which allow you to create a Path.

However, when I try using it inside my smart contract or transaction I get an error as shown in screenshot below:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/flow/original/1X/8c18c0d047761050fddb796e573741cc46ecd60f.png)

Does anybody have any idea why this is happening? Does anyone have any sample which I can refer to define dynamic paths in cadence?

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [June 6, 2022, 8:48am UTC](https://forum.flow.com/t/dynamic-storagepath/3195/2 "2022-06-06T08:48:24Z")

</div>

Playground is running on older version of Cadence, you can try on emulator/mainnet/testnet
