# Dynamic Output Path

**URL:** <https://forums.losant.com/t/dynamic-output-path/4757>\
**Category:** Help\
**Tags:** workflow\
**Created:** [October 5, 2022, 5:54pm UTC](https://forums.losant.com/t/dynamic-output-path/4757 "2022-10-05T17:54:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonatas\_Liasch](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jonatas\_Liasch](https://forums.losant.com/u/Jonatas_Liasch)\
**Post date:** [October 5, 2022, 5:54pm UTC](https://forums.losant.com/t/dynamic-output-path/4757/1 "2022-10-05T17:54:15Z")

</div>

hi, I want to create a table where it is possible to visualize the experience users and the experience groups they belong to.  
however I am not able to perform a dynamic replacement of the group id by the group name.  
I thought of using something like this, a node loop, but it’s not working.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/1efd58dacd801d905375957248fea8cb9613f877.png)

can anybody help me?

---

<div class="post-metadata">

**Author:** ![Kevin\_Niemiller](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/kevin_niemiller/32/745_2.png) [@Kevin\_Niemiller](https://forums.losant.com/u/Kevin_Niemiller)\
**Post date:** [October 5, 2022, 7:23pm UTC](https://forums.losant.com/t/dynamic-output-path/4757/2 "2022-10-05T19:23:04Z")

</div>

@Jonatas_Liasch, your issue is that you can’t put templates (`{{ }}`) in a `Path` field, which in this case is the `Output Path` field.

I will typically initialize a new variable outside the loop (so right before the [Loop Node](https://docs.losant.com/workflows/logic/loop/)). For example, I would use the [Mutate Node](https://docs.losant.com/workflows/logic/mutate/) by putting `[]` or `{}` in the `Value Template` field, then check the `Treat value as JSON` checkbox, and in the `Destination Path` something like `working.users`. Then as I loop through each user or group, I can add to that new variable using the [Array Node](https://docs.losant.com/workflows/logic/array/) or [Mutate Node](https://docs.losant.com/workflows/logic/mutate/). I have attached an example workflow for this.

Let us know if you have any further questions.

[loop-through-experience-users-develop.flow](https://forums.losant.com/uploads/short-url/ywhrWH3yJNvMOLrXrtiJCjFSjPE.flow) (11.6 KB)

---

<div class="post-metadata">

**Author:** ![Jonatas\_Liasch](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jonatas\_Liasch](https://forums.losant.com/u/Jonatas_Liasch)\
**Post date:** [October 18, 2022, 10:30am UTC](https://forums.losant.com/t/dynamic-output-path/4757/3 "2022-10-18T10:30:42Z")

</div>

Hi @Kevin_Niemiller  
It’'s working correctly 😃

Thank you for your help
