Dynamic condition script - Targeted Recipient List
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 03:41 AM
I want to create a new Recipient list where from the Script I have to check the Product selected at Major Issue Management level and have to populate the list of customers having the same product
I want to create one Recipient list that will return all the Customers irrespective of the Selected product in MIM level
I wrote the below script, correct me where I'm going wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 04:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 04:57 AM
@Kri ,
Try with below code with the same steps as described in earlier thread
(function(){
var list=[];
var grd = new GlideRecord('sn_customerservice_case')
grd.addEncodedQuery('major_case_state=accepted');
grd.query();
while(grd.next()){
list.push(grd.product.ref_sn_prd_invt_product_inventory.contact);
}
var obj = {'internal' : list};
return obj;
})();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2023 05:01 AM
I'm not seeing any contact coming as a output here, may I know why?