Parsing through an mrvs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I am working on a workflow script to take a Multi-Row Variable Set from a catalog item. Create an array to get the data so that I can transfer the display name of the field POAM to a CHG. Everything is working great for creating the CHG from the catalog item, except for this one last piece. The POAM field on the CHG form is a string field and I just need the POAM IDs, not the other information.
Here is the section of code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
30m ago
Hello,
Your poam_arr is showing empty in the log so you need to look at the GlideRecord. Is your u_poam table in the Global or same scope as the Catalog Item? When pushing the value to the poam_arr I think you meant:
poam_arr.push(gr.getDisplayValue());
If this doesn't show values in the third / poam_arr log, add a log within the if block of the GR to make sure a record is found. Once you've confirmed this, try something more like:
poam_arr.push(gr.getValue('u_name'));
or whatever your display value field name is on this table.