Try the following in a Java Action
public ja_getHeader(IContext context, java.lang.String str_hdrK)
{
super(context);
this.str_hdrK = str_hdrK;
}
@Override
public java.lang.String executeAction() throws Exception
{
// BEGIN USER CODE
com.mendix.systemwideinterfaces.core.IContext ctx=getContext();
java.util.Optional<com.mendix.m2ee.api.IMxRuntimeRequest> orrq=ctx.getRuntimeRequest();
com.mendix.m2ee.api.IMxRuntimeRequest rrq=orrq.orElse(null);
if(rrq!=null){
java.lang.String str_hdrV=rrq.getHeader(str_hdrK);
return str_hdrV;
}else{
return null;
}
// END USER CODE
}
You can also build a list of KV rows and return that for processing in your MF