Custom Inbound Email Account not creating incidents: did not create or update incident using current
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 2 hours ago
I've created a custom Inbound Email Action to create Incidents from PrinterLogic alert emails, but I can't seem to get to work, instead it keeps using the OOB one. Priority is set to 50 to fire before the OOB one, but I keep getting the following error within the email log: PrinterLogic Email Alerts: did not create or update incident using current
Setting with the action:
Target Table: Incident
Action type: Record Action
Application: Global
Active: True
Type: New
Execution Order: 50
Below is the script I currently have:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
did you try disabling the OOTB one and see if your works?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I have, I still get the same error message "did not create or update incident using current" in the email log and now no incident is created since the OOB one is disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
33m ago
Hello @mgraden
Keep oob "Create Incident" disabled and update your script to remove:
1. event.state = "stop_processing";
2.
Use below:
If this works, then enable the oob and validate again.
My recommendation is to go for flow instead of inbound email action. As there maybe a possibility that many use cases may arise over a period of time which will end up modifying the script. For example avoid duplicate incident creation if same e-mail is sent multiple times. You may already know this that with flow there are many oob actions which can suffice such use cases.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi @mgraden
1) Are you doing anything in scoped App. In that case set following property to true.
set glide.record.legacy_cross_scope_access_policy_in_script
2) event state is deprecated long back. It could be the cause that it is not running.
3)Ensure your trigger condition is properly mentioned and is getting triggered properly.
like Subject contain create incident
Note: Check the Received mail for details.
You can write script or Field Action for the mapping under Action tab .
I find Field action is a bit easy as it is NO Code.
Sample :
4) Disable OOB inbound email action.
