- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 06:54 AM
I have a business rule that calls a REST Service to create an Incident in another ServiceNow instance. Upon return I will have the newly created INC and INC sys_id.
I'm trying to set the url to that new INC in the u_incident_number field (type= url) and have the INC number displayed from within a related list.
I able to set the INC number, but the URL goes to the case table which is incorrect. How can I set the URL?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 10:31 AM
use something like this
var url="https://...........?uri=inicdent.do?sys_id="+parsedResponse.result.sys_id;
current.u_incident_number="<a href="+url+">"+parsedResponse.result.number+"</a>";

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 09:16 AM
Christina,
For adding display text, you cannot do it using field type of URL. Instead you can use field type of HTML and use this in there
<a href="your url goes here">link text</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 10:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 10:31 AM
use something like this
var url="https://...........?uri=inicdent.do?sys_id="+parsedResponse.result.sys_id;
current.u_incident_number="<a href="+url+">"+parsedResponse.result.number+"</a>";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 10:52 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 11:14 AM
Yes, this only works when you from form. Sorry, it still shows the link when you view from a list