# Passing session values to function called in Feed

**URL:** <https://community.gatling.io/t/passing-session-values-to-function-called-in-feed/6088>\
**Category:** Gatling (Open-Source)\
**Created:** [May 9, 2021, 12:13pm UTC](https://community.gatling.io/t/passing-session-values-to-function-called-in-feed/6088 "2021-05-09T12:13:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakthivelraja\_Vaithi](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sakthivelraja\_Vaithi](https://community.gatling.io/u/Sakthivelraja_Vaithi)\
**Post date:** [May 9, 2021, 12:13pm UTC](https://community.gatling.io/t/passing-session-values-to-function-called-in-feed/6088/1 "2021-05-09T12:13:35Z")

</div>

Hi,

I have created a function which accept input string and return processed output. calling this function in feed and storing output in the variable ‘variableName’  
feed(Iterator.continually(Map(“variableName”-\>functionName(\*function\_argument1,\*_function\_argument2_))))

I am using another feed to import values from CSV  
feed(csv(strDataFile).circular)

Trying to pass the session value from the csv file to the function.  
For example csv holds the value for ‘userName’ and ‘password’, i am passing as below in the feed  
feed(Iterator.continually(Map(“variableName”-\>functionName(_"${userName}",\*\*"${password}"_))))

While execution, function getting the value as _${userName} not the resolved value._

_What is wrong here?_

_My intention is to get value from CSV and pass it to a external function used by test service._

_Thanks for your time and suggetions._

_Thanks and Regards,_  
_Sakthivel Raja V_

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 10, 2021, 9:08am UTC](https://community.gatling.io/t/passing-session-values-to-function-called-in-feed/6088/2 "2021-05-10T09:08:37Z")

</div>

Please read the documentation, especially the warnings, [https://gatling.io/docs/current/session/expression\_el/](https://gatling.io/docs/current/session/expression_el/)

Gatling Expression Language is not something magical you can use wherever you want.
