- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 12:16 PM
For ServiceMapping, Is the saListCis function documented somewhere? What other parameters or abilities does it have?
Thanks,
PG
Solved! Go to Solution.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 01:53 PM
Hello,
I see only docuemtnation for saListCis
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 01:53 PM
Hello,
I see only docuemtnation for saListCis
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 10:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 10:54 PM
It's code is something like this:
function saListCis(bsId) {
var gr = new GlideRecord('svc_ci_assoc');
gr.addQuery('service_id', bsId);
gr.query();
var prefix = '';
var ids = '';
while (gr.next()) {
ids = ids + prefix + gr.getValue('ci_id');
prefix = ',';
}
return ids;
}
The logic is the following:
Based on a given Business Service ID it goes to the table that hold the associations between a Business Service and its related CIs and retrieves the list of CIs associated to that Business Service in a comma concatenated string list.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 10:54 PM
I hope this helps!