- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 12:38 AM
I'm trying to copy cause notes and fix notes to close notes on the problem record when the state changes to resolve. cause notes and fix notes both are HTML-type fields, and close notes is a String-type field. if you add any special characters in either of these fields - with text from both of these fields are added to the close notes when a Problem is set to Resolved it adds an ampersand & instead of what ever special character it is - e.g. an apostrophe
Business rule: Before - update
Condition: State "is" Resolved
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:54 AM
Hi @sd khaja
no need for regex expression magic which doesn't work at the end. Instead use for example:
var cn = new GlideSPScriptable().stripHTML(current.cause_notes.getValue());
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:54 AM
Hi @sd khaja
no need for regex expression magic which doesn't work at the end. Instead use for example:
var cn = new GlideSPScriptable().stripHTML(current.cause_notes.getValue());
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 10:38 PM
Hi @Maik Skoddow, Thanks for your response. That is working fine in my PDI but not in my company instance. I'm not sure what the issue is in my instance if you have any idea please let me know. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 05:55 AM
Hi @sd khaja
only you can know what the differences between your PDI and your company instance are as I have no access to it!
If you want to hear some ideas, you have to provide way more details and context information.
Maik