Retrieve latest public comment in flow designer data pill.

Victor Ruiz
Tera Guru

The below data pill retrieves all the public comments from the record, can it be setup to only retrieve the latest comment?

 

find_real_file.png

 

 

5 REPLIES 5

vkachineni
Kilo Sage
Kilo Sage
Untested code. You can try
find_real_file.png
 
var latest_comment = fd_data.trigger.current.comments.getJournalEntry(1);
return latest_comment;
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

The scripting field is not available in the email data pill:



find_real_file.png

 

 

Can you generate the body using a script?

find_real_file.png

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

Ha...yes I was able to retrieve the short description but the following does not work:

 

var latest_comment = fd_data.trigger.current.comments.getJournalEntry(1);
return latest_comment;