7 Replies · Latest reply on Oct 12, 2017 9:48 PM by Kannan Nadar

    Adding related Demands reference numbers on a Private Task notification

      Could someone please assist. We want to include the related Demand information on a Private Task notification. I wrote an email notification script below, but it doesn't pull the information through. I suspect my query because I wasn't sure what to use on this query line "dmn.addQuery('parent', current.sys_id);". Your input would be much appreciated.


      (function runMailScript(current, template, email, email_action, event) {

      var dmn=new GlideRecord('dmn_demand');
      dmn.addQuery('parent', current.sys_id);
      template.print("number:", dmn.getValue('number'));
      template.print("short_description", dmn.getvalue('short_description'));
      })(current, template, email, email_action, event);