# Create "variable of variable" from webhook payload (mapping path)

**URL:** <https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390>\
**Category:** Questions\
**Tags:** set-variable, mapping\
**Created:** [November 26, 2025, 3:12pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390 "2025-11-26T15:12:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [November 26, 2025, 3:12pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/1 "2025-11-26T15:12:17Z")

</div>

### 🎯 What is your goal?

Mapping set of multiple variables from different data root payload

### 🤔 What is the problem & what have you tried?

I want to map the exact same set of variables coming from the exact same bundle, with the unique difference that the mapping root is not the same (look at the attached screenshots) :

- {{1.workflow.children.children}}
- {{1.payload.workflow.children.children}}
- {{1.payload.job.workflow.children.children}}

I tried to create a variable of those variable roots but it didn’t work. In other words, I tried to get “payload.job.workflow” or “payload.workflow” or “workflow” depending on my input flow.

### 📸 Screenshots (scenario flow, module settings, errors)

[0-Mission-terminée-Kaze-Plomberie-Storing-Make-11-26-2025\_04\_11\_PM.pdf](https://community.make.com/uploads/short-url/bGgqFcEja9OBoYNWMkyXPmz9Ml4.pdf) (61.8 KB)

---

<div class="post-metadata">

**Author:** ![Moid\_shaikh](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/moid_shaikh/32/83698_2.png) [@Moid\_shaikh](https://community.make.com/u/Moid_shaikh)\
**Post date:** [November 26, 2025, 3:20pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/2 "2025-11-26T15:20:04Z")

</div>

Make doesn’t allow truly dynamic mapping paths (you can’t build `{{payload.job.workflow}}` on the fly). Best fix is to standardize the JSON first (Parse JSON / Set variable) so you always map from one stable path like `workflow.children.children`.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [November 26, 2025, 3:32pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/3 "2025-11-26T15:32:14Z")

</div>

Thank you @Moid_shaikh I see and what is the best way to “standardize the JSON” according to you?

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [November 26, 2025, 4:44pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/4 "2025-11-26T16:44:55Z")

</div>

Hey Garry,

what’s the problem exactly? The data is supposed to come as one of the three variables, but you don’t know which one it is?

If that is the case, you can have a nested ifempty() function that checks one, if its empty, checks the second and keeps going until one variable returns an output.

Also your map() function in the attached PDF is wrong. The first argument should be an array.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [November 26, 2025, 5:08pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/5 "2025-11-26T17:08:53Z")

</div>

Yes, you’re right and I know actually that a nested ifempty() would work but I would use a big (and ugly) condition that looks something like :

{{ifempty(first(map(first(map(48.workflow.children.children; “children[1].children”; “id”; “info\_client”)); “data.value”; “id”; “prenom”)); ifempty(first(map(first(map(1.payload.workflow.children.children; “children[1].children”; “id”; “info\_client”)); “data.value”; “id”; “prenom”));first(map(first(map(1.payload.job.workflow.children.children; “children[1].children”; “id”; “info\_client”)); “data.value”; “id”; “prenom”))))}}

While I could use something like (if possible) :

first(map(first(map(1. **{{payload.job.workflow}} OR {{payload.workflow}} OR {{workflow}}**.children.children; “children[1].children”; “id”; “info\_client”)); “data.value”; “id”; “prenom”))

Which is much more beautiful 🙂 I hope you agree

And yes, I can create a simple input to create this condition **{{payload.job.workflow}} OR {{payload.workflow}} OR {{workflow}}**

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [November 26, 2025, 5:27pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/6 "2025-11-26T17:27:13Z")

</div>

Oh no, you do the ifemtpty() on the array inside the map() function, not on the entire thing.

So something like:

first(map(first(map(ifempty({{1.payload.job.workflow.children}};ifempty({{1.payload.workflow.children}}; {{1.workflow.children}}));

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [November 26, 2025, 8:27pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/7 "2025-11-26T20:27:05Z")

</div>

You’re right. I event didn’t think about that, that’s why I posted to clear my mind 😉 I’ll test it thank you

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 24, 2026, 8:42pm UTC](https://community.make.com/t/create-variable-of-variable-from-webhook-payload-mapping-path/97390/8 "2026-02-24T20:42:06Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


