- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 01:57 PM
Hi
Can you please assist with extracting the assignment group from a catalog item to set it as the assignment group for an SCTask?
Once a user selects the assignment group, this information should be captured from the RITM and assigned to the SCTask assignment group.
The General Service Request is an SCTask selected from the Select Request Template.
The Assignment Group is a reference field that obtains its information from the sys_user_group table and is named
assignment_group.
SCtask assignment group
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 10:01 PM
Hi @Sid2024
Let me know if you face any difficulties.
Please mark the solution as correct if it works for you.
Thanks!
Ramkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 01:33 AM
Hi @Sid2024 ,
You can write a before Business Rule on Catalog Task (sc_task) table.
Advanced: true
When to run:
before (insert)
Conditions: add if any
Advanced script:
(function executeRule(current, previous /*null when async*/) {
current.assignment_group = current.request_item.assignment_group;
})(current, previous);
Hope it works 😊.
Mark the response correct and helpful if the answer assisted your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 07:09 PM
Hi @Sid2024
Write a before business rule with the following script with appropriate conditions to make it run only for the specific catalog item(if needed).
Script:
In the catalog task activity of the workflow write down advanced script like
task.assignment_group =current.variables.AssignmentGroupVariableName;
Use the variable names in place of bold text as per your need.
Please give a try and let me know if you face any challenges.
Thanks!
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 08:40 PM
Hi Ram
Thanks for the reply...
I created a business rule and added your script , still no joy
Thanks
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 08:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 10:01 PM
Hi @Sid2024
Let me know if you face any difficulties.
Please mark the solution as correct if it works for you.
Thanks!
Ramkumar