Inbound Script is getting Skipped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 11:35 AM - edited ‎09-11-2024 07:46 AM
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)
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 12:10 PM
Hello @Shidhi ,
You can try the below trigger conditions attaching snapshot for better visibility.
Use the below attached script.
Please mark my answer as accepted solution and give thumbs up, if it helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 07:44 AM
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:
Any idea why this error is coming. Please help.
Thank you!