# Finding a specific header value

**URL:** <https://community.make.com/t/finding-a-specific-header-value/22065>\
**Category:** Questions\
**Tags:** http\
**Created:** [December 16, 2023, 8:01pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065 "2023-12-16T20:01:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian-HFLA](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/brian-hfla/32/21031_2.png) [@Brian-HFLA](https://community.make.com/u/Brian-HFLA)\
**Post date:** [December 16, 2023, 8:01pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/1 "2023-12-16T20:01:46Z")

</div>

Hello all!

I have a formula that is getting the value from a specific header in our payload:

{{get(map(27.headers; “value”); 8))}

My formula has the header position hardcoded (at the moment, our vendor sends the data to our webhook and the header is 8), but that could change.

Any suggestion on modifying this formula so it searches for a specific header value based on its NAME?

Is this as simple as:

{{get(map(27.headers; “value”;“headername”); 1))} ??

Thank you!

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 16, 2023, 11:41pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/3 "2023-12-16T23:41:50Z")

</div>

Please provide the output bundles of the module by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a `bundle.json` file, and upload it here into this discussion thread.  
 ![Screenshot_2023-10-06_141025](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

Providing the output bundles will allow others to _replicate_ what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

---

<div class="post-metadata">

**Author:** ![Brian-HFLA](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/brian-hfla/32/21031_2.png) [@Brian-HFLA](https://community.make.com/u/Brian-HFLA)\
**Post date:** [December 17, 2023, 9:25am UTC](https://community.make.com/t/finding-a-specific-header-value/22065/4 "2023-12-17T09:25:58Z")

</div>

Here is the JSON output of the Iterator  
[headeroutput.json](https://community.make.com/uploads/short-url/hRLY2DNmxLaxNKuAL3aIJA30ULj.json) (1.9 KB)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 18, 2023, 12:54pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/5 "2023-12-18T12:54:08Z")

</div>

Sorry for the delay, I was out travelling over the weekend 🙂

There is actually a very simple solution to this:

![Screenshot_2023-12-18_201221](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/a/bab1b6b7a3e7bbb76dbc681096e579a78e8556fa.png)

This way you can map the header values by name in a later module:

![Screenshot_2023-12-18_201246 (2)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/2/b2712f777b750fec59c22267955c4423601d87f2.png)

---

<div class="post-metadata">

**Author:** ![Brian-HFLA](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/brian-hfla/32/21031_2.png) [@Brian-HFLA](https://community.make.com/u/Brian-HFLA)\
**Post date:** [December 18, 2023, 1:48pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/6 "2023-12-18T13:48:57Z")

</div>

That’s perfect! Will I need to use a map function afterwards or a get? (or both) to retrieve the value I want?

I’m using this formula to parse the data I need out of that field:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/4/e49747eab4d4ff2f05add7ea3a0777c685a16167.png)  
with this formula to get the header currently:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/6/c637c812e93e2b499f3a2dec6bd609a64aabc214.png)

---

<div class="post-metadata">

**Author:** ![Brian-HFLA](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/brian-hfla/32/21031_2.png) [@Brian-HFLA](https://community.make.com/u/Brian-HFLA)\
**Post date:** [December 18, 2023, 1:57pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/7 "2023-12-18T13:57:44Z")

</div>

Nevermind - answered my own question!

{{get(toCollection(27.headers; “name”; “value”); “content-disposition”)}}

Works like a charm! 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:** [January 1, 2024, 2:07pm UTC](https://community.make.com/t/finding-a-specific-header-value/22065/8 "2024-01-01T14:07:51Z")

</div>

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


