
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 02:50 AM
Hi,
for a string I can do something like this ... current.u_field1 = current.u_field1 + current.u_field2; current.update();
... but how to do this if both fields are arrays?
Thank you!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 04:08 AM
Have a read of this thread about why not to use current.update()
Never use current.update in a Business Rule
try the below script, it's saying, if the current watch list is not empty, get the value and add it to the work notes.
if(!current.watch_list.nil()){
var watch = current.getValue('watch_list');
current.work_notes_list += ',' + watch;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 03:03 AM
Hi Vemffm,
What sort of fields are you working with? Array isn't a field type, are you working with list (glide list) fields?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 03:04 AM
Sorry. Yes. List.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 03:13 AM
OK so there's a handy script include on Chuck Tomasi's blog which can be used for interacting with glide list fields, you can get that at the link below.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2017 03:18 AM
ok thanks - so no easy way ;-(
Why simple things are so non-simple from time to time? 😉