UI Action is not picking the condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 12:50 AM
Hello Team,
Ui Action is not picking up the condition where it calling script include , please help me to get this issue resolved
ideally it should skipped the Risk assesment for RFC change , poreviously it is working but not now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:26 AM
@ABC6 I saw your code. You can run the same function from background script for records where button is not being shown to see if that function is returning true or not.
Script which can be use for testing purpose in background:
var current=new GlideRecord("your_table_name");
if(current.get("your_record_sys_id")){
gs.print( new verifyApprovalWorkflowStep().isEnabled(current,'approval');
}
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:38 AM
Button is visible , the main issue is it is asking for RFC Change user to fill the risk assessment which is not correct, it should skipped the Risk assessment for RFC change and directly goes into approval stage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:45 AM
@ABC6 So, how is this issue related to button then? it is more of workflow issue, isn't it?
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:48 AM
it is not a workflow issue , it is printing an alert message from script include which is mentioned over script section