How can we map the sc task to specific assignmnet group pick the data from cutom table?

raj99918
Tera Contributor

Hi,

 

I have requirement like after the submitting the catalog form it should create a SC task and map to specific group which mentioned in the one of the cutom table called "u_new_table" (Columns like Assignment group, Region, Company and Location) example: If users location on the form is "India" then it should map to group called "Group1" and this record has been creeated in the custom table u_new_table but How can I map this automatically from script include please help me with the script.

 

Thanks

9 REPLIES 9

@raj99918 

you can call that script include and pass the value

something like this

AnkurBawiskar_0-1730819063630.png

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar Mapping is happening but its picking the wrong group name from that custom table So How can I get this exact India location to exclude from that cutom table from the form I tried this script below one:

 

if(configloc != 'India'){
gs.log("Smith90907: ");
grConfig.addQuery("u_region", region);
  }
 
Even If location is India from the catalog form still it is going to that above loop usually it should skip it from script point of view please correct on this one.
 
Thanks

@raj99918 

are you sure you are comparing the correct value in the IF

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  From the logs got the location value as India from configloc variable from the script and the same value am using it in script but it’s failing 

@raj99918 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader