- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 11:36 PM
Hi,
I would like to set some variables in CI comment field in multiple lines during discovery.
I know there is "Set Parameter Value" operation in the pattern designer.
Can I set variables in multiline text like below?
<Comment field>
Variable A: xxxxxx
Variable B: yyyyyy
Variable C: zzzzzz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 11:58 PM
Hi,
You can definitely have multi line text i guess, but the pattern designer doesn't have direct capability. So you need to use eval scripts to format the multi line text.
In the same step in Value field, type EVAL() and then you get edit option beside and then select "Other" in top right for groovy code.
Please refer the 2nd example in groovy section in below KB and you can add multi line text accordingly.
Please refer this KB article in how to write eval scripts.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0647736

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 12:16 AM
+1 to Sid.
-Ashutosh