Inserting empty in custom table(Multi row variable set)

Sneha39
Mega Guru

Created MRVS on catalog item and inserting these variable values into the custom table but its adding empty value in the custom table.

 

using below script in task activity of workflow ( As i want task to be created and in the same time variables values to be submitted in custom table as well)

(function() {

        var rowsInt = current.variables.server_request.getRowCount();

        for (var i = 0; i < rowsInt; i++) {

           var grTask = new GlideRecord('u_customtbl);

            grTask.initialize();

            grTask.u_usercerts = current.variables.user_certs;

            grTask.insert();

        }

 

})();

find_real_file.png

 

 

26 REPLIES 26

Getting null pointer exception :

find_real_file.png

Can you share the screenshot of your code.

Thanks,
Murthy

find_real_file.png

Hi Sneha,

I think you are gliding to wrong table, please cross check your table name

find_real_file.png

Thanks,
Murthy

No its correct, Its feeding the value in the custom table but not creating task from the catalog task activity