How can i pass user email address from incident form to MIM communication task recipient?

Ankit Kumar6
Tera Contributor

Hi Team,

I have a list field on the Incident form where multiple users can be selected. My requirement is: when multiple users are selected in this field, their email addresses should be passed to the "To" field of the MIM Workbench Communication Task as recipients.

Could you please guide me on how this can be implemented?

11 REPLIES 11

Hi @Bhuvan  ,

I’m working with the Company [core_company] table because we have a custom field on the Incident form named "Affected Customer", which is of type List and references the Company table.

My requirement is:
Whenever a user selects one or more values in the Affected Customer field, the corresponding email address(es) from the Company table should be fetched and auto-populated into the Communication Task.

Let me know if you need any further clarification or assistance in implementing this logic.

Thanks,
Ankit

@Ankit Kumar6 

 

Check your code logic as email field do not exist in 'core_company' table.

 

See below for sample code simulating your scenario. Created custom field 'u_email' and created few sample email entries in 'core_company' table. These entries will be included in affected customers field in Incident record.

Bhuvan_0-1754827375053.png

Created a sample incident with Affected Customers,

Bhuvan_1-1754827461869.png

Created script to be included in Recipients list as part of MIM Communication plan,

Bhuvan_2-1754827488665.png

Bhuvan_3-1754827536598.png

Please mark the post as Helpful or Accept Solution if it helped to answer your question.

 

Thanks,

Bhuvan