# How to access request values in .NET Code Behind

**URL:** <https://discuss.workflowgen.com/t/how-to-access-request-values-in-net-code-behind/1220>\
**Category:** Form Designer\
**Created:** [November 19, 2018, 2:51pm UTC](https://discuss.workflowgen.com/t/how-to-access-request-values-in-net-code-behind/1220 "2018-11-19T14:51:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazey](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@hazey](https://discuss.workflowgen.com/u/hazey)\
**Post date:** [November 19, 2018, 2:51pm UTC](https://discuss.workflowgen.com/t/how-to-access-request-values-in-net-code-behind/1220/1 "2018-11-19T14:51:06Z")

</div>

Hi,

I would like to access requester username or user currently assigned to action within .NET code behind.

I’ve tried in this formula (assuming to this ticket: [“Currency” type for the FieldsDataType that displays currency according to the culture](https://discuss.workflowgen.com/t/currency-type-for-the-fieldsdatatype-that-displays-currency-according-to-the-culture/927))

`Request.Form["WFGEN_LANG"]`  
`Request.Form["REQUESTER_USERNAME"]`

But those call returns null objects.  
How to access these values properly from .NET code behind?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [November 20, 2018, 10:27pm UTC](https://discuss.workflowgen.com/t/how-to-access-request-values-in-net-code-behind/1220/2 "2018-11-20T22:27:28Z")

</div>

Hi @hazey,

The best way to do this is to create a **hidden** field in the form and in the **Mapping** macro IN the current username ( **Current user.Username** macro). You can then use this value in code behind by referencing the **Text** parameter of the hidden field.

Regards,  
Eddy.
