This topic contains 1 reply, has 0 voices, and was last updated by JohnCCole 6 years, 9 months ago.

  • Author
    Posts
  • #18045

    srussell

    I’m new to SuiteScript. I have a custom record with item fields. I want to get salesdescription for the items in these fields.

    function beforeSubmit(context) {

    var workItem = context.newRecord;

    var addon_1 = workItem.getValue(‘custrecord_ip_wk_addon1’);

    }

    gets me the item id. How do I pull in the associated salesdescription, which I want to concatenate into a text area field.
    This is a cached copy. Click here to see the original post.

  • #18046

    JohnCCole

    You could add a new text field to your custom record that sources the sales description from the item field on your custom record. Or you could lookup the sales description on demand with search.lookupFields

You must be logged in to reply to this topic.