You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy expression to categories based on the email subject and email body

Summary:

Hi Team,

We have requirement to categories the SR request based on the email subject and email body,I am creating the logic under triggers with the triggering event as Before Insert.

I ran the below code but it was throwing validation error as email subject and email body is not part of the fields under HR helpdesk request -->fields --> custom and standard. Could you please let me know a solution on this asap.

if (EmailSubject?.contains("Hello World") &&
EmailBody?.contains("abc@yopmail.com")) {

Category2_c = "Medicals"
Category3_c = "HR"

}

Could you please provide me a solution on this ?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!