How can I stop additional comments from causing a loop in my bidirectional ServiceNow integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 07:13 AM
I have successfully set up a bidirectional integration between two ServiceNow instances, dev248999 and dev247508. I can create and update incidents in both instances without any issues. However, when I try to pass additional comments from one instance to the other, the comments are being duplicated or creating a loop. I am attaching a notepad file with the business rule code of both instances for reference. Can you help me resolve this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 07:43 AM
i am also facing same issue

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 09:43 AM
@ashutoshsha One way to address this issue is to make a GlideAggregate query on the Journal Entries (sys_journal_field) table and check if the exact same worknote was added in the last one minute. If the condition turns out to be true then you can current.setAbortAction(true) to abort such update.
Hope this helps.