We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Copy multi row variable set to another multi row variable set

KKiran1
Kilo Contributor

Hi All,

In a order guide i have 3 catalog items, and each item is having multi row variable set. When order guide is created, i have copy all these multi row variable set to 1 multi row variable set.

Script i used is copying only 1 multi row variable set and other 2 is not copying.

Any help please.

var sourceRitmGR = new GlideRecord('sc_req_item');
 sourceRitmGR.addEncodedQuery('sys_idIN3f58c09c5353221008b9d2a0a0490ee1,6c88c49c5353221008b9d2a0a0490e81,4598c0934553221118b9d2a0a0491edf');
    sourceRitmGR.query();
    while(sourceRitmGR.next())
    {
        var sourceMultiRow = JSON.parse(sourceRitmGR.variables.employee_details);
        current.variables.employee_details = JSON.stringify(sourceMultiRow);
        current.update();
    }
0 REPLIES 0