- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 10:03 AM
Hello all,
I am attempting to clean up the work_notes data in Flow designer. I can get the plain version of work_notes by just pointing the Flow towards that field and I am given:
TimeStamp Data Andrew Stringfield (work notes)
"Andrew Stringfield did things"
When I try to split the string value and just get the:
"Andrew Stringfield did things"
I get the result of:
com.glide.glideobject.Journal@1413743
In the Field functions I am using the
Split function first and it is looking for the value of: (work notes)\n
And then I am using the "last item in array" function
What am I missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:12 PM
I ended up creating a Before BR that does what I was trying to do with Flow designer. Here is what I ended up doing:
var worknote = current.work_notes.getJournalEntry(1);
gs.addInfoMessage(worknote);
var worknoteContent = worknote.split("(Work Notes)\n");
// I HAD to do a for loop to access the [1] value of the worknoteContent array object. I tried to
// access it directly, but for whatever reason, SN was not having it...
for (var i = 0; i < worknoteContent.length; i++) {
if(i == 1) {
current.close_code='cancelled';
current.close_notes = worknoteContent[i];
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 11:52 AM
Can you provide a screenshot of your config in flow designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:12 PM
I ended up creating a Before BR that does what I was trying to do with Flow designer. Here is what I ended up doing:
var worknote = current.work_notes.getJournalEntry(1);
gs.addInfoMessage(worknote);
var worknoteContent = worknote.split("(Work Notes)\n");
// I HAD to do a for loop to access the [1] value of the worknoteContent array object. I tried to
// access it directly, but for whatever reason, SN was not having it...
for (var i = 0; i < worknoteContent.length; i++) {
if(i == 1) {
current.close_code='cancelled';
current.close_notes = worknoteContent[i];
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:52 PM
Were you able to get it resolved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 05:10 AM
Yes. The above code is the solution that I came up with. It makes no sense, but hey it works.