Name

global.RestStepFormUrlEncodedUtil

Description

Util to create form url encoded payload.

Script

var RestStepFormUrlEncodedUtil = Class.create();
RestStepFormUrlEncodedUtil.prototype = {
  initialize: function() {
      this.parts = [];
  },
  addNameValue: function(name, value) {
      this.parts.push({
          name: name,
          value: value,
          order: this.parts.length
      });
  },
  
  build: function() {
      return JSON.stringify(this.parts);
  },
  type: 'RestStepFormUrlEncodedUtil'
};

Sys ID

7d40f433eba41110840129a77c5228e6

Offical Documentation

Official Docs: