Bulk incident ticket creation from Excel sheet.

Vengeful
Mega Sage

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?

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Vengeful ,

 

Please check this link. It has detailed steps

 

https://www.servicenowelite.com/blog/2013/11/24/incident-data-load

 

Thanks,

Danish

 

View solution in original post

16 REPLIES 16

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? 

@DanielCordick 

Here's the transform map

Merza_0-1700808748938.png

 

I believe it’s it’s work_notes and not the comments and work_notes 

Hello @Danish Bhairag2 

I already fix the state, but the work notes and additional comments (visible to customer) fields are not working.

Merza_0-1700802984868.png

Also, if you can help me with to add in the script to auto-populate the location.

Merza_1-1700803083110.png

I wanted to remove the location in the excel and just auto-populate base on the user location.

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