Domain Separation - Inbound Email Action

Farzeena
Tera Contributor

My inbound email creates a Case. I need to set the domain of the case. I have tried setting the domain in the inbound action script but it wasn't working. I have tried setting it through a BR after inbound email is processed and a case is created, but that is also not setting the correct domain. 

 

1 REPLY 1

Laszlo Balla
Mega Sage
Mega Sage

Since inbound actions are not domain aware, the crated case will be created in the domain of the sender user. You can write conditions in your inbound email action script to check your user's domain and decide to run or not run the script (or even, run differently for different domains using if/else or switch statements), e.g.:

if(gs.getUser().getDomainID() != <sys_id_of_the_domain>;

Related support article