jebeeee
jebeeee

Reputation: 51

suitescript - could not get value from search result

[![

This data has been loaded from calling saved search.

Cannot access only the value of NDC and prod_desc. But the others are accessible? ]1]1

enter image description here

Upvotes: 0

Views: 2693

Answers (1)

bknights
bknights

Reputation: 15447

Those are not transaction fields. If you have the item's purchase description and item id in the search results then you'd access those in script using the join syntax:

var ndc = searchResult.getValue('itemid', 'item');
var prod_desc = searchResult.getValue('purchasedescription', 'item');

Upvotes: 1

Related Questions