Form builder Assist

Hello,

I’ve built this form for my custom flow, but for the Discount Items dropdown, I’m not seeing a Refresh button to fetch the latest list from the assigned saved search. The refresh button appears for the Shipping Method field, but not for Discount Items.

If anyone has any insight into this, please let me know.

{"fieldMap": {"shippingMap_MY": {"id": "shippingMap_MY","name": "shippingMap_MY","type": "staticMap","label": "Malaysia: Shipping Method Mapping","keyName": "shopifyShippingMethod","keyLabel": "Shopify Shipping Title","valueName": "netsuiteShippingItem","valueLabel": "NetSuite Shipping Item","valueResource": {"virtual": {"_connectionId": "695dfd283fadbc618b2a3f6b","netsuite": {"type": "restlet","skipGrouping": true,"asynchronous": true,"statsOnly": false,"restlet": {"recordType": "ShipItem","searchId": "361","useSS2Restlets": true},"distributed": {"useSS2Framework": false}},"transform": {"type": "expression","version": "1","rules": [[{"extract": "Name","generate": "label"},{"extract": "id","generate": "value"}]]},"adaptorType": "NetSuiteExport"}}},"discountItem_MY": {"id": "discountItem_MY","name": "discountItem_MY","type": "select","label": "Malaysia: Discount SKU","valueResource": {"virtual": {"_connectionId": "695dfd283fadbc618b2a3f6b",

      "netsuite": {
        "type": "restlet",
        "asynchronous": true,
        "skipGrouping": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "364",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"shippingDiscountSKU_MY": {
  "id": "shippingDiscountSKU_MY",
  "name": "shippingDiscountSKU_MY",
  "type": "select",
  "label": "Malaysia: Shipping Discount SKU",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "364",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"shippingMap_SG": {
  "id": "shippingMap_SG",
  "name": "shippingMap_SG",
  "type": "staticMap",
  "label": "Singapore: Shipping Method Mapping",
  "keyName": "shopifyShippingMethod",
  "keyLabel": "Shopify Shipping Title",
  "valueName": "netsuiteShippingItem",
  "valueLabel": "NetSuite Shipping Item",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "ShipItem",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"discountItem_SG": {
  "id": "discountItem_SG",
  "name": "discountItem_SG",
  "type": "select",
  "label": "Singapore: Discount SKU",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"shippingDiscountSKU_SG": {
  "id": "shippingDiscountSKU_SG",
  "name": "shippingDiscountSKU_SG",
  "type": "select",
  "label": "Singapore: Shipping Discount SKU",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"shippingMap_ID": {
  "id": "shippingMap_ID",
  "name": "shippingMap_ID",
  "type": "staticMap",
  "label": "Indonesia: Shipping Method Mapping",
  "keyName": "shopifyShippingMethod",
  "keyLabel": "Shopify Shipping Title",
  "valueName": "netsuiteShippingItem",
  "valueLabel": "NetSuite Shipping Item",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "ShipItem",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"discountItem_ID": {
  "id": "discountItem_ID",
  "name": "discountItem_ID",
  "type": "select",
  "label": "Indonesia: Discount SKU",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
},
"shippingDiscountSKU_ID": {
  "id": "shippingDiscountSKU_ID",
  "name": "shippingDiscountSKU_ID",
  "type": "select",
  "label": "Indonesia: Shipping Discount SKU",
  "valueResource": {
    "virtual": {
      "_connectionId": "695dfd283fadbc618b2a3f6b",
      "netsuite": {
        "type": "restlet",
        "skipGrouping": true,
        "asynchronous": true,
        "statsOnly": false,
        "restlet": {
          "recordType": "item",
          "searchId": "361",
          "useSS2Restlets": true
        },
        "distributed": {
          "useSS2Framework": false
        }
      },
      "transform": {
        "type": "expression",
        "version": "1",
        "rules": [
          [
            {
              "extract": "Name",
              "generate": "label"
            },
            {
              "extract": "id",
              "generate": "value"
            }
          ]
        ]
      },
      "adaptorType": "NetSuiteExport"
    }
  }
}

},"layout": {"type": "collapse","containers": [{"label": "Malaysia Store Settings","fields": ["shippingMap_MY","discountItem_MY","shippingDiscountSKU_MY"]},{"label": "Singapore Store Settings","fields": ["shippingMap_SG","discountItem_SG","shippingDiscountSKU_SG"]},{"label": "Indonesia Store Settings","fields": ["shippingMap_ID","discountItem_ID","shippingDiscountSKU_ID"]}]}}

Because you’re currently using "type": "select" for the discount field, please change it to "type": "staticMap".

For example, update this:

"id": "discountItem_MY",
"name": "discountItem_MY",
"type": "select"

To this:

"id": "discountItem_MY",
"name": "discountItem_MY",
"type": "staticMap"

Changing it to Static map makes it a static lookup but im looking for a drop down refresh button;

Please change "type": "select" to "type":"exportSelect" and "valueResource": to "resource": .
For more details please refer to common form fields article.

Thankyou Sree Vani!

1 Like