- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 11:39 PM
Hi everyone,
I'm working on a transform map that updates Incidents from an external system, and I’ve written an onBefore transform script to handle one specific requirement.
Goal:
Add a Work Note like "Urgency updated to <value> by External System"
Only when the Urgency value has actually changed
Avoid adding duplicate notes if the same urgency value is sent again
To achieve this, I’m:
Checking the most recent Work Note to ensure the note hasn’t already been added
All of this logic is in the onBefore transform script
Question:
Is this the right way to handle such logic in a transform map?
Are there any recommended best practices when using onBefore scripts like this to avoid unnecessary updates or duplicate notes?
Code:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 12:40 AM
UI policies nor client scripts apply to transform maps as those things only apply to interactive user sessions via the browser

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 12:04 AM
Hi,
I would advise against adding these sorts of automated work notes as they cause noise in the activity feed. Instead, display the urgency field as part of the activity feed. Field changes will then be displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 12:22 AM
If Work Notes are mandatory (due to a UI Policy or Client Script) when Urgency is changed by a third-party system, and this change is being processed via a Transform Map, what is the best way to handle this requirement while avoiding duplicate or unnecessary work notes?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 12:40 AM
UI policies nor client scripts apply to transform maps as those things only apply to interactive user sessions via the browser