- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 07:50 PM
We have a requirement: Create a bulk of incident tickets using an Excel sheet and it should be auto-resolve.
Anyone can assist me for transform map script for this request?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 07:57 PM
Hi @Vengeful ,
Please check this link. It has detailed steps
https://www.servicenowelite.com/blog/2013/11/24/incident-data-load
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 10:15 AM
To change the state via transform map or script, you will need to use number associated to it not the display value. Also how did you transform the work_notes field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 10:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 01:57 AM
I believe it’s it’s work_notes and not the comments and work_notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 09:19 PM
Hello @Danish Bhairag2
I already fix the state, but the work notes and additional comments (visible to customer) fields are not working.
Also, if you can help me with to add in the script to auto-populate the location.
I wanted to remove the location in the excel and just auto-populate base on the user location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:26 AM
Hi @Vengeful ,
For additional comments & workNotes the target field should be "comments" & "work_notes" please reverify this.
Also to populate users location via script u can create an onBefore or onAfter script in the transform map & use below script.
var user = new GlideRecord ('sys_user');
user.addQuery('user_name',source.u_name);
user.query();
if(user.next()){
target.setValue('location',user.location);
}
Thanks,
Danish