How to update an incident without creating duplicate incident, import set is completed with errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 03:51 AM
Hi Team,
We have an SFTP integration with ServiceNow through schedule jobs (import sets)
once the import set state is completed with errors it will create an incident and the make import log message as short description - we are able to create incident by using Business rule and script Include.
But my client requirement is because of this lot of incidents are created in ServiceNow, they raise a request per instead creating incidents ,update the incidents from 2nd incident onwards for the same day
For the next day first error state create an incident and then from the second incident onwards it needs to update .
Kindly help me on the above issue
Thank you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 06:47 AM
If the import set is set up to use transform maps one way of doing this is having a unique identifier(s) for the first day error record. With the unique identifier(s) set it or them if multiple identifiers as the coalesce value(s). This way the transform will update the one record instead of creating a new.
Some examples of finding or creating unique identifiers:
1. Coalesce on short description and created date being of the same day.
2. Create a new subcategory under the software category and coalesce on the category ,sub category and created date
3. Create some sort of daily unique id on creation of the incident and place that id in the out-of-box field "correlation_id". Use that as the coalesce value
I'm sure there are other ways of coming up with something unique about the incident to coalesce on for the day but these are the first that popup in my head.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 07:55 AM
Hi Chris,
Thanks for your response
For incident creation when the state of the import set run is complete with Errors we wrote an after business rule with the following script include
But we required for day one incident needs to create and remaining all needs to update in the first incident.
Could you please help me on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 10:00 AM
To understand the requirement correctly:
1. On day one incident , if there is an error after import set runs create an incident
2. If there are other errors then update the day one incident with the new errors
3. On day two if there are errors then create a new incident for that day
4. On day two if there are subsequent errors update the "day two" incident with new errors for that day
5. follow same pattern for each new day
Or is the requirement
1. Day one incident is created if there are errors after import set completes
2. If there are subsequent errors update day one incident
3. Next day, if there are subsequent errors update Day one incident
4. Future days, keep updating Day one incident with any subsequent errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2023 02:27 AM
Hi Chris,
Normally we have SFTP to ServiceNow integration with 35 scheduled jobs (Daily on different timings)
the below 2 possible ways for import set state is complete with errors
1. if the file is not loaded into the SFTP server
2. there is mismatch with username and password in ServiceNow.
your first requirement we are looking for
To understand the requirement correctly:
1. On day one incident , if there is an error after import set runs create an incident
2. If there are other errors then update the day one incident with the new errors
3. On day two if there are errors then create a new incident for that day
4. On day two if there are subsequent errors update the "day two" incident with new errors for that day
5. follow same pattern for each new day
Thanks for your reply