How do I copy one array (i.e. List) to another in a business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2017 08:51 AM
I need to copy an array (List) from the Idea table to a new Project record that has another field setup exactly the same way. A straight-up 'setValue' doesn't work.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2017 09:06 AM
.toText may work for you depending on how you have the variables laid out.. hard to tell without the definition of the two variables....
if it IS an array format the array utilities are helpfull if you need to trim/manhandle the array.
http://wiki.servicenow.com/index.php?title=ArrayUtil#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2017 09:49 AM
Raymond, what do you need to see dictionary-wise?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2017 09:43 AM
Below post has solution to move list content in another list
You will need to update this code
Populate List Collector From Another List Collector
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2017 09:49 AM
I'm doing this via BR not a CS.
