Record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 12:46 AM - edited 11-26-2024 12:48 AM
Hello Team,
I have request to create 4 tasks under record producer on the basis of condition:-
e.g:- Suppose I have drop down list having options A,B,C,D when I have selected option A then Automation task needs to be create for assignment group A.
Same for other options B, C and D as well . Could you please help how we can create those tasks,.
Please let me know below how we achieve though below:- how we can achive this script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 12:51 AM
Hi @Community Alums
You can use the flow designer for same. get the catalog varaibles and use that in action.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 12:53 AM
can you help me with example , on flow designer?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 04:05 AM
Hi @Community Alums
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 02:16 AM
Hi @Community Alums
You Can use like below code,
if (producer.varible_name == 'A') {
var gr = new GlideRecord('table_name');
gr.initialize();
gr.assignment_group = "sys_id_of_assignment groupA"; //assignment group A
// map remaining varibles if required
gr.insert();
}
if (producer.varible_name == 'B'){
var gr = new GlideRecord('table_name');
gr.initialize();
gr.assignment_group = "sys_id_of_assignment group B"; //assignment group B
// map remaining varibles if required
gr.insert();
}
if (producer.varible_name == 'C'){
var gr = new GlideRecord('table_name');
gr.initialize();
gr.assignment_group = "sys_id_of_assignment group C"; //assignment group C
// map remaining varibles if required
gr.insert();
}
if (producer.varible_name == 'D'){
var gr = new GlideRecord('table_name');
gr.initialize();
gr.assignment_group = "sys_id_of_assignment group D"; //assignment group D
// map remaining varibles if required
gr.insert();
}
Thankyou