Hello Everyone, Im getting trouble when trying to ...
# suitecommerce
g
Hello Everyone, Im getting trouble when trying to add a custom field to the sales order custom field in my extension Configuration.json
Copy code
{
  "type": "object",
  "modifications": [
    {
      "target": "$.properties.customFields.salesorder",
      "action": "add",
      "value": "newCustomField"
    }
  ]
}
Any ideas?
s
If you're trying to capture a transaction custom field, I would recommend using our extension. Otherwise, we document the leading practices here: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_4837340253.html
g
I want to add a custbody to the sales orders customfields that I'm currently using in my extension, in order to avoid adding it manually a the configuration > Advanced > CustomFields.
s
OK, so you've got the NetSuite custom field extension installed and activated, and in your custom extension you want to add a field to the configuration object that the NetSuite extension creates?
g
No, I dont have the Netsuite Custom Field Extension, I just want to add a new input to the Advanced>Custom Fields> Sales Order by as you can using the UI. Is it possible to achieve this by modification or something?
s
I see
Well, it's been a while since I've written code for the configuration object but I'm pretty sure you don't need to use JSONPath for this
As you're only adding a new field to an existing group
So you don't need the subtab config bit because it already exists, so you're just adding a property