There is no record found but sys id and number is created while using inbound email action, how to resolve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 09:14 PM
The below script is used in Inbound action to create incident if no record is found:-
Logs:-
Check5 PTR :ef41338d87791510c54c0e170cbb356c5136 503cc611227c0183e96598c4f706 incident_uk PTR1244382
I logs sys id and number is there,but no record in table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 09:34 PM
Hi,
You have to use newInc.initialize(); this before inserting the incidents. This is the reason for that you are not able to see in backend but it will show those details but it will not save.
replace below code on last of your code or add below line in your code.
Hope you it helps you.
Please Mark ✅ Correct/helpful if applicable, Thanks!!
Regards
Pavankumar
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 09:52 PM
Hi Pavan,
Thanks for the reply.
Actually, this code is working fine in my development instance and creating record but not working in pre-prod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 08:48 PM
Hi,
is it triggering the email action?
have you kept any logs ?
Thanks,
Pavankumar
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 11:49 PM
Hi
If you issue resolved please close the thread so that others will get benefit.
Please Mark ✅ Correct/helpful if applicable, Thanks!!
Regards
Pavankumar
ServiceNow Community MVP 2024.
Thanks,
Pavankumar