Inbound action from specific email to be assigned particular assignment group

kimadusa
Tera Contributor

Hello,

I have specific requirement on the inbound action script for emails from specific address ie johndoe@domain.com  to be  assigned to specific assignment group ( Assignment group B) 
Please assist in code the above

 

Thanks

3 REPLIES 3

prashant8
Tera Expert

Hi.

select action type- Record Action

when to run > from> 'specific user'

in action define-

current.assignment_group='specific_group';
current.update();

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please add the below code in the inbound action just replace  the sysid of the grp with your group sysid

 

if(email.from=='johndoe@domain.com')
{
current.assignment_group='sysidofthegroup';
}

 

Saurav11_0-1666159923443.png

 

Please mark my answer as correct based on Impact.

Hi @Saurav,

 

Can you share the script? I would like to see if it is possible to implement the same for my requirements.
In my case, when an email sender belongs to a specific domain, the ticket should be created for a specific form. For example, the email sender has a domain of @domain1.com, the inbound action should create a ticket for domain 1 requests form.

Thank you.