I am trying to take data from a clientResponse and...
# suitescript
k
I am trying to take data from a clientResponse and store in a field on a custom record via client script. Is this possible?
c
Yes
k
Copy code
if(submitAApproval.code === 200){

    let myMsg = message.create({
        title: 'CLC Submission',
        message: 'The Art Submission Was Submitted Successfully',
        type: message.Type.CONFIRMATION
    });

    myMsg.show({
        duration: 7000 // will disappear after 5s
    });

    var licenseSubRec = record.load({
        type: 'customrecord_lic_submission',
        id: dataObj.id,
        isDynamic: true
    });

    console.log(licenseSubRec)

    licenseSubRec.setValue({
        fieldId: 'custrecord_lf_clc_custom_id',
        value: value.CustomId,
        ignoreFieldChange: true
    })

    licenseSubRec.save();

} else {
This is the code sample I have tried and its not working.
@CD
c
Lots of context missing