diff --git a/b812ceb69337a210633378917cba10bc/README.md b/b812ceb69337a210633378917cba10bc/README.md
index 1aa7e3e..05cd6fa 100644
--- a/b812ceb69337a210633378917cba10bc/README.md
+++ b/b812ceb69337a210633378917cba10bc/README.md
@@ -24,4 +24,4 @@ If you find yourself unable to import your repository due to the presence of fil
2.2 Activate/install all required dependencies
2.3 Re-import the application from source control
Currently listed dependencies:
- * ServiceNow IntegrationHub Enterprise Pack Installer
+ *
diff --git a/b812ceb69337a210633378917cba10bc/checksum.txt b/b812ceb69337a210633378917cba10bc/checksum.txt
index c79b952..918923c 100644
--- a/b812ceb69337a210633378917cba10bc/checksum.txt
+++ b/b812ceb69337a210633378917cba10bc/checksum.txt
@@ -1 +1 @@
-TsAQfdLmHlQpDWWpmTAOJZhOofaBXroa99BLfZLNodItO7s3UoGwtlBPoZGYhv8xhGhZjMssiOM8X91k1fZfMxeH7kpHx995li5l9wbCdRBfsTIFYsRo1vpc1tFYBNnGxtm4MHU9W4wGGk3PCX2qzDG19OOG0k3H48w94y5cL229oU-Jt_mx5t_-buqNi97RSZo_-SSQ8j4C0F_-U8zMa21JwUbzIJD3sH_pyaSkVjqhmJ19WbHmjK3wPq6WJUVm9k3rsx30rAtAmYVq-8YXmhAlSDpfOrnRqNAsmy7H36TbSeFwyDprcj9-CFVqTiJLnf1Hf0BrZTUFpdkxM6BnNJWIJWBFHAyGPV68zqwEvi6KWIq8_0ZRPiCkkRnGGY7cZQ9DvBpe3UM4wZN4yXePxurbVWsUEN1iikrd_1oAmMJu9kVJz461w1pIHEWFhiw27c0zlTcf2y7EVf_0o-pL2wL-8l0UWttoPBnkTIlG6GXVZqFmnmDc8QNq8d-N02J0i9b4SE8LqBXpLp7bsa9BauSEz_UgERsV2-BYwEpuSGgbS1EgBKoD3sngA07P3D5FemPDLZYwQsNb2j-Yuyv34s2jOCE_0a1Xmc5xSg8Wj_kz8xpnvwNUq4yaQJXSLhl7TpVpeBtX6iP5gDjMRp2VGqtjjmly4CyPgZnETQbXWuw
\ No newline at end of file
+hv7WDZwXJOgmT_fTT4pk_cxZzPBr1GmQzFQDuDbf0vfMRrq0tcM1N9AyMdobTlCJQ1jMrOw7UvCiqNXIQ_xyswjjFxH9L-G8jSN_Cv4Cb2A6bs-7BS30n5EZfCUsa3_4IkHq04BmSigCsFKdne-BnmohY3uJIHtilCI2hSzITCDPbZw_0wSgVr1pi4mcXpdrr0UHINXUxXrN6o7a2DKDSuPQZ2wduIwG6lxSXspAXEDtiVzzWYqajG6D4IsY5SPd_Xi0SUyNGksbn9IRtZCQ0DIraibc5vghlZBneg578Qn_vQJl0E594LaoMHWgdXL2D8Txfq-e40OFdHRKiTgJMdrcP6GjWGPiapT6ZBfFtXlcUQ5mQmljNbY8n4EZbFFye3ZmwiAdN_oa34aAyVJ_YCJpYspxHFzLQTeme2-Tf0-zz_XibpNZZOwh9nQMF6qAgkban8BpMmZ0w0r21ELQHok0J-kphR50v64arrhSvtXiOela73HiLN6gZTTNnKZhOSnAhTyyfz5P07XQaiZYyUgTVwUcseBhkniBRagpD6iLPQj5y2KkABPrTWuxTFEBwhboG52JzYP6rQT55DMd7mCjiXO6f-KDlTCzl_6wTLTQpcUrdsvKPqL6hvZYTm-61D6TtIxreRsmejnp2PqLGJvhgiv5AZBWJq4aXV6cqBI
\ No newline at end of file
diff --git a/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_83b67d4ec39cb6108dbc32f1b40131a3.xml b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_83b67d4ec39cb6108dbc32f1b40131a3.xml
index 292e1e2..02aaaf6 100644
--- a/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_83b67d4ec39cb6108dbc32f1b40131a3.xml
+++ b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_83b67d4ec39cb6108dbc32f1b40131a3.xml
@@ -12,14 +12,14 @@
- Get the Comments latest Journal Entry from a Record with an action, letting me provide the table name and Document ID for the Record as input.
+ Get the latest Journal Entry from a Record with an action, letting me provide the table name, Document ID, and Journal Field type (comments of work notes) as input.falseget_latest_journal_entry
- [{"name":"{{action.variable}}","label":"action➛variable","type":"action","ref":"","reference_display":"","base_type":"table_name","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.table}}","label":"action➛Table","type":"action","ref":"","reference_display":"","base_type":"table_name","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.sysid}}","label":"action➛SysID","type":"action","ref":"","reference_display":"","base_type":"document_id","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"Document ID","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"document_id","uiUniqueId":"ed7df75a-4e8f-41c0-bbae-5c6dba760ce3"}},{"name":"{{step[7fc8e49f-67c0-4697-8b9b-7d954e138ea4].comment}}","label":"step➛Script step➛comment","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"7f4a3f58-1b8b-4fdf-99c4-a0a4222c3318"}}]
+ [{"name":"{{action.variable}}","label":"action➛variable","type":"action","ref":"","reference_display":"","base_type":"choice","parent_table_name":"","column_name":"","choices":[],"attributes":{}},{"name":"{{action.table}}","label":"action➛Table","type":"action","ref":"","reference_display":"","base_type":"table_name","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.sysid}}","label":"action➛SysID","type":"action","ref":"","reference_display":"","base_type":"document_id","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"Document ID","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"document_id","uiUniqueId":"ed7df75a-4e8f-41c0-bbae-5c6dba760ce3"}},{"name":"{{action.journal_type}}","label":"action➛Journal Type","type":"action","ref":"","reference_display":"","base_type":"choice","parent_table_name":"","column_name":"","choices":[{"label":"Comments","value":"comments","order":1.0},{"label":"Work Notes","value":"work_notes","order":2.0}],"attributes":{}},{"name":"{{step[7fc8e49f-67c0-4697-8b9b-7d954e138ea4].comment}}","label":"step➛Script step➛comment","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"7f4a3f58-1b8b-4fdf-99c4-a0a4222c3318"}}]656a75c2c3dcb6108dbc32f1b4013196
- Get Latest Comments
+ Get Latest Journal Entry
@@ -31,15 +31,15 @@
global/83b67d4ec39cb6108dbc32f1b40131a3
- 11
- Get Latest Comments
+ 10
+ Get Latest Journal Entryb812ceb69337a210633378917cba10bcb812ceb69337a210633378917cba10bcsys_hub_action_type_definition_83b67d4ec39cb6108dbc32f1b40131a3nia.mccash
- 2025-10-01 17:19:28
+ 2025-10-02 19:18:33false
@@ -112,7 +112,7 @@
- 83b67d4ec39cb6108dbc32f1b40131a3
+ 83b67d4ec39cb6108dbc32f1b40131a37fc8e49f-67c0-4697-8b9b-7d954e138ea41
@@ -128,10 +128,10 @@
nia.mccash2025-10-01 17:11:35de98b902c3dcb6108dbc32f1b4013137
- 3
+ 4b812ceb69337a210633378917cba10bcnia.mccash
- 2025-10-01 17:17:57
+ 2025-10-02 19:16:23
@@ -156,42 +156,45 @@
nia.mccash2025-10-01 17:11:35de98b902c3dcb6108dbc32f1b4013148
- 2
+ 3nia.mccash
- 2025-10-01 17:17:57
+ 2025-10-02 19:16:23(function execute(inputs, outputs) {
- var latestComment = "";
+ var latestJournalEntry = "";
var record = new GlideRecord(inputs.tablename);
if (record.get(inputs.sysid)) {
- latestComment = record.comments.getJournalEntry(1);
+ if (inputs.journaltype == 'work_notes')
+ latestJournalEntry = record.work_notes.getJournalEntry(1);
+ else
+ latestJournalEntry = record.comments.getJournalEntry(1);
}
- outputs.comment = latestComment;
+ outputs.comment = latestJournalEntry;
})(inputs, outputs);
71aa7f6647032200b4fad7527c9a719b
- application
+ journaltypede98b902c3dcb6108dbc32f1b4013137nia.mccash
- 2025-10-01 17:11:35
- d698b902c3dcb6108dbc32f1b4013148
+ 2025-10-02 19:16:23
+ 00ce935ac31c3a108dbc32f1b40131080nia.mccash
- 2025-10-01 17:11:35
-