I have to check email body text values which we are getting from email in inbound action.

niveditakumari
Mega Sage

Hi, 

 

I have to check email body text values which we are getting from email in inbound action. 

I'm getting values from email body text and I need to check whether newhire and managerid values are empty or not if that values are empty then do not trigger inbound action and if newhire and managerid values are available then trigger inbound action and create HR case. 

Please find attached screenshot : 

 

niveditakumari_0-1698265420163.png

 

niveditakumari_1-1698265436218.png 

 

Can anyone please tell how to check this condition in attached inbound action to achieve that. 

 

Regards, 

Nivedita

 

 

1 ACCEPTED SOLUTION

niveditakumari
Mega Sage

Hi, 

 

I have used current.setAbortAction(true); 

and it is working now. 

 

Regards, 

Nivedita

 

 

View solution in original post

7 REPLIES 7

SanjivMeher
Kilo Patron
Kilo Patron

You can check hiringmanagerid if it has a value, dont to current.insert/update


Please mark this response as correct or helpful if it assisted you with your question.

Hi @SanjivMeher

Yes correct I need to check newhire and hiringmanagerid is having value or not. 

How to check that. 

 

Regards, 

Nivedita

 

 

You can do if (hiringmanagerid) then proceed


Please mark this response as correct or helpful if it assisted you with your question.

 

I have done that already as I have mentioned it is creating HR case first then it is checking condition that is available in my script it means it is creating HR case and it is not salifying condition available in script So it is creating with empty values. 

Please suggest how to stop HR case being created when conditions not satisfy. 

 

Regards, 

Nivedita