Domain Separation - Inbound Email Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 07:03 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 09:02 AM
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>;