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

Your current.update or insert may be outside of the if condition you are checking.

If you are doing a check here, you are closing the if loop. You also need a check of these variables before doing current.update/insert

SanjivMeher_0-1698424835862.png

 


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

niveditakumari
Mega Sage

Hi, 

 

I have added some condition in script and it is creating HR case but with empty values like opened for, subject person and short description is empty in that HR case. 

niveditakumari_0-1698313233803.png

 

niveditakumari_1-1698313259239.png

 

Can anyone please help me to stop creating HR case when it does not satisfy condition. 

 

Regards, 

Nivedita

 

 

 

niveditakumari
Mega Sage

Hi, 

 

I have used current.setAbortAction(true); 

and it is working now. 

 

Regards, 

Nivedita