Inbound Script is getting Skipped

Shidhi
Tera Contributor

I have to create a P2 incident via Inbound email action. I need help adding the triggering conditions below.

The ${serviceId} service was unhealthy
The ${serviceId} service has scaled from ${oldScaleValue} to ${newScaleValue} instances
The ${serviceId} service has scaled to ${newScaleValue} instances VPN connection has been interrupted

The liferay service exceeded ${ThresholdValue} of its allocated Memory
{within this bracket number comes}

My Inbound email action looks like the below. (I have added subject test just for understanding sake)

Shidhi_0-1725993234249.png

 

My Actions code snippet:

 

 

 

 

(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {

current.cmdb_ci = 'ac7c9cfd471e59d05d4c2d52846d43e4';
current.short_description = email.subject;
current.description = email.origemail + "\n\n" + email.body_text;
current.u_source = 'Email';
current.insert();

})(current, event, email, logger, classifier);

 

 

 

 

Please help!

Thank you.

2 REPLIES 2

Abhishek_Thakur
Mega Sage

Hello @Shidhi ,

You can try the below trigger conditions attaching snapshot for better visibility.

mail trigger.png

 

Use the below attached script.

Email script.png

 

Please mark my answer as accepted solution and give thumbs up, if it helps you.

Hi @Abhishek_Thakur 

 

Getting an error as mentioned below:

 

Skipping script 'Create INC for Bizlink and BSPN', condition 'subjectLIKEservice was unhealthy^ORsubjectLIKEservice has scaled from^ORsubjectLIKEVPN connection has been interrupted^ORsubjectLIKEliferay service exceeded of its allocated Memory^user=shedheeshhanum.boni@cnoinc.com^EQ' failed

 

Attaching the screenshot below:

 

Shidhi_0-1726065837800.png

Any idea why this error is coming. Please help.

 

Thank you!