This topic contains 0 replies, has 0 voices, and was last updated by JayDP123 7 years, 2 months ago.

  • Author
    Posts
  • #18299

    JayDP123

    Hello,

    I am trying to perform an update using the “Script Debugger” and SS 2.0.

    I have a record that is a custom record type, and I am trying to get values from a sublist of that record.

    I have the following code:

    Code:
    require([‘N/search’, ‘N/record’, ‘N/log’], function(search, record, log){

    var assetRecord = record.load({
    type : ‘customrecord_ncfar_asset’,
    id : ‘132’
    });

    //This assetLists array gives me a sublist with the name ‘systemnotes’
    var assetLists = assetRecord.getSublists();
    for (i=0;i(N/record/recordService.js)”,”(adhoc$-1$debugger.user:14)”,”(adhoc$-1$debugger.user:1)”],”cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:null,”u serEvent”:null,”stackTrace”:[“(N/record/recordService.js)”,”(adhoc$-1$debugger.user:14)”,”(adhoc$-1$debugger.user:1)”],”notifyOff”:false},”id”:””,”notifyOff”:false}

    Am I doing something wrong? Is there a different sublistId I should be using? If so how/where do I get that id?
    This is a cached copy. Click here to see the original post.

You must be logged in to reply to this topic.