pass data between business rules

luke_vf_08
Kilo Expert

Hi. I'm trying to pass data from a before business rule to an after (and / or async) business rule. g_scratchpad won't work as it's only an option for display business rules.

The reason I need to do this is current.comments and current.work_notes are not available in after or async business rules, so I need a way of forwarding it via a variable to the after / async business rules.

Any ideas on how this can be achieved?

1 ACCEPTED SOLUTION

luke_vf_08
Kilo Expert

Nevermind. Solved it with the following code. The splice just removes the comment entry containing the author.



var comments = current.comments.getJournalEntry(1);


var lines = comments.split('\n');


lines.splice(0,1);


comments = lines.join('\n');


View solution in original post

1 REPLY 1

luke_vf_08
Kilo Expert

Nevermind. Solved it with the following code. The splice just removes the comment entry containing the author.



var comments = current.comments.getJournalEntry(1);


var lines = comments.split('\n');


lines.splice(0,1);


comments = lines.join('\n');