UI Action is not picking the condition

ABC6
Tera Contributor

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 

ABC6_0-1746517834138.png

 

21 REPLIES 21

@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');
}

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

ABC6
Tera Contributor

ABC6_0-1746524212289.png

 

ABC6
Tera Contributor

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

@ABC6 So, how is this issue related to button then? it is more of workflow issue, isn't it?

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

ABC6
Tera Contributor

it is not a workflow issue , it is printing an alert message from script include which is mentioned over script section

ABC6_0-1746524909599.png