Populate communication task BCC from Manage recipients in MIM workbench

User667175
Giga Expert

Hi all, 

Our incident manager has asked us to implement the Major Incident workbench of which we're about 90% done. As part of the feedback it has been asked if we can popualte the BCC on the communication tasks with a recipient list, managed under the "Manage recipients" option. 

find_real_file.png

I've identified the script include where you create an email object with email.recipients(to) and added email.copied(cc) and email.blind_copied(bcc). However simply adding these in doesn't pull through the information into the form. 

find_real_file.png

Does anyone have any ideas on how to pull through the information into BCC. 

find_real_file.png

 

 

Thanks,

Mike. 

7 REPLIES 7

soumyamitra
ServiceNow Employee
ServiceNow Employee

 

So, this is something which is not supported OOB. The 'To' field is mandatory as of today on the e-mail client.

You can use a workaround:

- Override the method you found to return at least an e-mail id, which can be put to 'To'.

- Each e-mail channel is associated with an e-mail client template. In the e-mail client template, use a script like below in the BCC field

javascript: new SomeScriptInclude().someFunction(current.incident_alert);

 

Thanks

Soumya

Kevin Smith2
Giga Expert

Hi Mike,

Did you find any solution for this ?

I am looking for the same functionality.

Thanks

Kevin

Venkatasubraman
Tera Expert

Hi Guys,

Did anyone have a solution to this, I'm also looking for the same to be achieved for my client. 

Regards,

Venkat

There wasn't a way to do this functionality, I had a long conversation with Hi to try and create this. 

Their suggestion was the following: 

 

  • getEmailAddresses method in MIMWorkbenchUtil script include returns the email address (user/groups) from the contacts table. If there is no record available in the contact table respective to that incident alert then it returns empty. Its working for me, Follow the below steps:
  • 1. navigate to the incident
  • 2. Open workbench
  • 3. Goto the communications tab
  • 4. Under 'Internal Communication' click on the 'send' button for the 'Send Incident Notification' task,
  • 5. You will see the users listed for Bcc

 

This was after putting the following in the notification, under bcc: 

javascript: new MIMWorkbenchUtil().getEmailAddresses(current.incident_alert); 

 

This was as far as I got with it, it was returning under the BCC but also under the TO and unfortunately I ran out of time to look at it any further. Hopefully the above helps you.