Inserting empty in custom table(Multi row variable set)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 10:00 PM
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();
}
})();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 11:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 11:02 PM
Can you share the screenshot of your code.
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 11:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 11:34 PM
No its correct, Its feeding the value in the custom table but not creating task from the catalog task activity