How to access request values in .NET Code Behind

#1

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)

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

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

0 Likes

How to retrieve the process name from code behind?
#2

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.

0 Likes

How to retrieve the process name from code behind?