Populate a Field with the Error from Try and Catch statement in Suitescript 2.1

Viewed 10

how do I populate a field M/R field (custitem_mr_field) from the error that was thrown in the try and catch statement? Do I have to use submitFields or setValue?

try{

//Insert code here

    } catch (e) {
        log.error(JSON.stringify(e));
        throw e.message;
    }
0 Answers
Related