{
  "synLogic": "int $ret \u003d $api($1);",
  "help": "The ns_advance_param function causes the script to use the next available value of the parameter",
  "notes": "If you are running multiple iterations, you can specify in the parameter properties to advance automatically to the next value for each iteration. Use this function within an iteration to advance to the next value.",
  "returns": "int",
  "arguments": "",
  "parameterization": "Parameterization is not applicable to this function",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Parameter Name",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Parameter Name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      } 
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      } 
    }
  ],
  "name": "ns_advance_param",
  "syntax": "int ns_advance_param(const char *param_name)",
  "javaSyntax": "int ns_advance_param(final String param_name)",
  "jsSyntax": "int ns_advance_param(param_name: string)",
  "cEx": "flow()\n{\n  ns_advance_param(\"RegularPPidFP\");\n  ns_start_transaction(\"DT_API_AB_bagitems_POST\");\n\n  ns_web_url (\"DT_API_AB_bagitems\",\n    \"URL=https:\/\/order-api.com\/order-api\/v1\/accounts\/{CustomerIdSP}/draft-order/bag/items\",\n    \"METHOD=POST\",\n    BODY_BEGIN,\n      \"{\"sdpuStoreInfo\":{},\"deliveryOption\":{\"shipToHomeOrStore\":{\"label\":\"Ship to Home or Store\",\"deliveryMessage\":\"est. delivery: aug 7th - aug 9th\",\"availabilityMessage\":\"\",\"isshipToStoreDisabled\":false,\"isChecked\":false,\"channelOfferingLabel\":\"\",\"isVisitStoreToPurchase\":false,\"storeInfoVisitToPurchase\":\"\",\"updatedAsOf\":\"\"}},\"isChangeStoreAtc\":false,\"data\":[{\"skuId\":\"{SkuIdFP}\",\"ppId\":\"{RegularPPidFP}\",\"quantity\":{BogoQuantityFP},\"deliveryOption\":{\"type\":\"HOME\",\"selected\":true,\"label\":\"Ship to Home or Store\"},\"childItems\":[]}]}\"\n    BODY_END\n  );\n\n  ns_end_transaction(\"DT_API_AB_bagitems_POST\",NS_AUTO_STATUS);\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n  nsApi.ns_advance_param(\"RegularPPidFP\");\n  nsApi.ns_start_transaction(\"DT_API_AB_bagitems_POST\");\n\n  nsApi.ns_web_url (\"DT_API_AB_bagitems\",\n    \"URL=https:\/\/order-api.com\/order-api\/v1\/accounts\/{CustomerIdSP}/draft-order/bag/items\",\n    \"METHOD=POST\",\n    BODY_BEGIN,\n      \"{\"sdpuStoreInfo\":{},\"deliveryOption\":{\"shipToHomeOrStore\":{\"label\":\"Ship to Home or Store\",\"deliveryMessage\":\"est. delivery: aug 7th - aug 9th\",\"availabilityMessage\":\"\",\"isshipToStoreDisabled\":false,\"isChecked\":false,\"channelOfferingLabel\":\"\",\"isVisitStoreToPurchase\":false,\"storeInfoVisitToPurchase\":\"\",\"updatedAsOf\":\"\"}},\"isChangeStoreAtc\":false,\"data\":[{\"skuId\":\"{SkuIdFP}\",\"ppId\":\"{RegularPPidFP}\",\"quantity\":{BogoQuantityFP},\"deliveryOption\":{\"type\":\"HOME\",\"selected\":true,\"label\":\"Ship to Home or Store\"},\"childItems\":[]}]}\"\n    BODY_END\n  );\n\n  nsApi.ns_end_transaction(\"DT_API_AB_bagitems_POST\",NS_AUTO_STATUS);\n  }\n}",
  "jsEx": "  nsApi.ns_advance_param(\"RegularPPidFP\");\n  nsApi.ns_start_transaction(\"DT_API_AB_bagitems_POST\");\n\n  nsApi.ns_web_url (\"DT_API_AB_bagitems\",\n    \"URL=https:\/\/order-api.com\/order-api\/v1\/accounts\/{CustomerIdSP}/draft-order/bag/items\",\n    \"METHOD=POST\",\n    BODY_BEGIN,\n      \"{\"sdpuStoreInfo\":{},\"deliveryOption\":{\"shipToHomeOrStore\":{\"label\":\"Ship to Home or Store\",\"deliveryMessage\":\"est. delivery: aug 7th - aug 9th\",\"availabilityMessage\":\"\",\"isshipToStoreDisabled\":false,\"isChecked\":false,\"channelOfferingLabel\":\"\",\"isVisitStoreToPurchase\":false,\"storeInfoVisitToPurchase\":\"\",\"updatedAsOf\":\"\"}},\"isChangeStoreAtc\":false,\"data\":[{\"skuId\":\"{SkuIdFP}\",\"ppId\":\"{RegularPPidFP}\",\"quantity\":{BogoQuantityFP},\"deliveryOption\":{\"type\":\"HOME\",\"selected\":true,\"label\":\"Ship to Home or Store\"},\"childItems\":[]}]}\"\n    BODY_END\n  );\n\n  nsApi.ns_end_transaction(\"DT_API_AB_bagitems_POST\",NS_AUTO_STATUS);\n",
  "insertStrC": "ns_advance_param(const char *param_name);",
  "insertStrJava": "ns_advance_param(final String paramName);",
  "insertStrJs": "ns_advance_param(param_name: string);",
  "description": "The ns_advance_param advances to the next available parameter value"
}
