Guest User

Untitled

a guest
Oct 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function getMySubscribedServices(){
  2.  
  3. var arrSvc = [];
  4.  
  5. gr = new GlideRecord('sys_notif_subscription');
  6. gr.addQuery('user',gs.getUserID());
  7. //gr.addQuery('affected_table','cmdb_ci');
  8. gr.query();
  9. while (gr.next()) {
  10. arrSvc.push(gr.affected_record.toString());
  11. arrSvc.push(gr.affected_record.parent.toString());
  12. }
  13. return arrSvc;
  14. }
Add Comment
Please, Sign In to add comment