
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 10:37 AM
We are in New York and I've had a request to create a hyperlink in an article to a selected configuration item using business rules. See red box below
Field is populated by selecting a CI from a reference field (cmdb_ci) in the knowledge form and a business rule runs to update the published article value.
I'm not sure how to obtain the CI location and create the hyperlink. Thanks in advance for any help.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 02:26 PM
Thanks one last question, if you wanted to specify not just a CMDB record but which view of that record to open is there a way to add on to the code to specify the view?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 02:20 PM
Thank you this worked!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 02:23 PM
If my response worked, could you please mark my response as correct?
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 02:26 PM
Thanks one last question, if you wanted to specify not just a CMDB record but which view of that record to open is there a way to add on to the code to specify the view?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 02:38 PM
Yes. You can try
var ciurl = gs.getProperty('glide.servlet.uri')+'cmdb_ci.do?sys_id='+current.getValue('u_ciname')+'&sysparm_view=<view name>';
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 03:50 PM
Please mark my response correct if it worked for you.
Please mark this response as correct or helpful if it assisted you with your question.