-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-record field results in saved search responses - Revised #470
Support non-record field results in saved search responses - Revised #470
Commits on Feb 13, 2021
-
Clarify search row_list data components
The "records" in the search group are hashes with "keys" that are the attribute names and "values" that the data returned by the search for those attributes (not necessarily the attribute values, though). For example, you'll often see things like this: ``` { :department=>{ :search_value=>{:@internal_id=>"113"}, :custom_label=>"Business Unit" } } ``` I think using `attr_name` and `search_result` instead of `k` and `v`, respectively, makes it clearer what the parts of this data constitute.
Configuration menu - View commit details
-
Copy full SHA for 800dfe7 - Browse repository at this point
Copy the full SHA 800dfe7View commit details -
Expose non-field search results within custom field list
Sometimes NS makes information available within saved search results that are not record fields. For example, you can run an InventoryItem search through the GUI that returns: * `Location Available` (the quantity available at the default location) * `Location Reorder Point` (quantity at which you should reorder) * `Location On Order` (quantity on order for the location) These are not record fields, as you can see with a quick CTRL-f through the NS schema docs: http://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2018_2/schema/record/inventoryitem.html They aren't custom formula results either (which NS doesn't seem to expose through the API). And they also aren't _custom fields_. This information is just default, standard-issue NetSuite. It's perfectly reasonable to have a search that returns them as results, and thus also reasonable to expect to be able to access them through the API.
Configuration menu - View commit details
-
Copy full SHA for cb80a8f - Browse repository at this point
Copy the full SHA cb80a8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0784733 - Browse repository at this point
Copy the full SHA 0784733View commit details -
Configuration menu - View commit details
-
Copy full SHA for a853075 - Browse repository at this point
Copy the full SHA a853075View commit details -
Restore extracting internal_id and support extracting external_id fro…
…m search results after supporting non-record fields Since these aren't "fields" (they're plain ruby attributes), they were treated as non-standard fields and populated as custom fields.
Configuration menu - View commit details
-
Copy full SHA for 763b77e - Browse repository at this point
Copy the full SHA 763b77eView commit details
Commits on Feb 14, 2021
-
Assign field name to script_id for API version 2013.2 and newer when …
…treating non-standard search result fields as custom fields
Configuration menu - View commit details
-
Copy full SHA for 6a0b418 - Browse repository at this point
Copy the full SHA 6a0b418View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e1b4f4 - Browse repository at this point
Copy the full SHA 8e1b4f4View commit details