Inbound email failing on procurement case table

olufsen
Kilo Sage

Hi, I have created an inbound email action on the sn_spend_psd_procurement_request table with execution order at 1.

 

I added a condition to only process emails from the same email domain. 

(email.from.indexOf('@mycom.com') > -1)

 

However, it shows this message saying it failed, and it processed the email because it has the watermark and the case number in the subject.

Skipping script 'ProcCase Replies from Domain', condition '(email.from.indexOf('@mycom.com') > -1)' failed

Email is classified as reply for triggers execution

 

My question would be, is it possible to bypass this and make my inbound condition to be the ONLY one processing these emails?

4 REPLIES 4

Bhavesh Bijagar
Tera Guru

Hi @olufsen 

 

Try below code in condition instead

email.origemail.toLowerCase().indexOf("@mycom.com") != -1

 

Look for more troubleshooting on below

Troubleshooting inbound email action issues - Support and Troubleshooting

Chaitanya ILCR
Kilo Patron

Hi @olufsen ,

create 2/3 inbound email actions 

1 for type New and 1 for the Reply 1 for forward as well if need with same logic

and enable stop processing if needed on all of them 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Pramod Devkate1
Tera Contributor

There could be below possibilities :

1. email always checks for case sensitivity, save email ID of From when it lands on sys_email in lower case, compare the same in Action. this will solve this issue for all future work on email actions and email flows. 

 

2. Even this won't work and you see different issue - See if you have action for New, reply. 

 

3. I will recommend to do this in flow and not in inbound action, reason is , flow gives your developer more flexibility and less hassle with no code/low approach and easy usage of data pills.

 

 

@Pramod Devkate1 I was opting to use Flow; however, I'm not sure how to interpret my condition. Do you have any idea how to do it?

 

olufsen_0-1747633995076.png