UI Action Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 08:00 AM
Hi All,
Need help in correction of script.
I have written, below UI Action script to retrieve Assignment Group values, according to Business Unit. But when I click on UI Action it gives error
** User who is clicking the button is member of group.. & I also tried using assignment group SYS_ID
-------------------------------------------------------
Script
----------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 08:14 AM - edited ‎07-02-2024 08:27 AM
Hi @DKSINGH,
From reading your script, this is data related and something you need to factor in when setting the Assignee.
You're attempting to set the Assignment Group and the Assignee, however it seems another rule (which is not uncommon) is kicking in preventing you to add an Assignee that is not a member of the group you've just set.
So as to check the theory, can you comment the line where you set the assignee or simply clear the assignee value:
- current.assigned_to = gs.getUserID(); comment out this line using // or
- current.assigned_to = '';
Or control the data so that you set the Assignee to be a member of the Assignment Group that you're setting.
You'll have to implement this logic into your code if required.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 08:58 AM - edited ‎07-02-2024 09:20 AM
Hi Robbie,
Now I am getting different issue, I used
current.assigned_to = ''; - Assignee Error is gone
But now, It is now creating duplicate records with blank Assignment Group & Assignee.
Any suggestion further ?