Skip to content

Instantly share code, notes, and snippets.

@mittsh
Created October 18, 2017 19:39
Show Gist options
  • Select an option

  • Save mittsh/a56ee8697c0582183e0955502d3ad7c6 to your computer and use it in GitHub Desktop.

Select an option

Save mittsh/a56ee8697c0582183e0955502d3ad7c6 to your computer and use it in GitHub Desktop.
function evaluate(context){
var request = context.getCurrentRequest();
var bodyParams = request.getUrlEncodedBody();
for (var property in bodyParams) {
if (bodyParams.hasOwnProperty(property)) {
console.log("" + property + " > " + bodyParams[property]);
}
}
return bodyParams;
};
@mittsh
Copy link
Author

mittsh commented Oct 20, 2017

To ignore one param and/or get a sorted list, I recommend this snippet instead:
https://gist.github.com/mittsh/b69613c16e2421ae45b08cdeaab5b2ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment