-
1. Re: Fetching hostname from summary in Remedy incident
Juan Miguel Matas Santiago Nov 28, 2017 6:43 AM (in response to vivek garg)Hi, Can you add an screenshot or an example to understand better your problem? Thanks!
-
2. Re: Fetching hostname from summary in Remedy incident
vivek garg Nov 28, 2017 7:15 AM (in response to Juan Miguel Matas Santiago)yes, here's the problem description :
I have a long string as "Incident has been assigned to your group with hostname: abc.xyz.in and this will be monitored for certain impact"
now this string is dynamic(hostname and it's value will always come) and I just need to extract the hostname i.e. abc.xyz.in and want to set this value in a new field on help desk form.
Thanks,
Vivek
-
3. Re: Fetching hostname from summary in Remedy incident
Juan Miguel Matas Santiago Nov 28, 2017 7:48 AM (in response to vivek garg)1 of 1 people found this helpfulOk, then you can use an active link with a setfield to the new field with, for example:
new_field is the target field
char_field is the origin field, with the whole string
57 is the initial position of the server string in your example
66 is the final positionIf the positions are not fixed, you can use the STRSTR function to determine the position dinamically:
STRSTR(char_field, "hostname:") - 9 --> this give you the initial position
STRSTR(char_field, "and this will be monitored") --> this give you the final positionI hope this will help you.
-
4. Re: Fetching hostname from summary in Remedy incident
vivek garg Nov 29, 2017 3:24 AM (in response to Juan Miguel Matas Santiago)that will help a lot, thanks
-
5. Re: Fetching hostname from summary in Remedy incident
Andreas Mitterdorfer Nov 29, 2017 8:35 AM (in response to vivek garg)1 of 1 people found this helpfulDepending on the content of char_field consider using the unicode equivalents of these functions (STRSTRC and SUBSTRC).