Canceling an HR case via Virtual AgentDescriptionWithin HRSD Case management there are HR services which get associated to any given case. The HR service records have a field named "Case Options". One of the possible options is "User Cannot Cancel". In the Native and Workspace UI, applying this option will prevent the "Opened for" user from canceling the HR Case themselves. This KB will go over how this "prevent cancel" functionality works and how to respect the functionality when creating a Virtual Agent Topic that allows users to cancel an HR Case.ResolutionIf we want to respect the same "Prevent Cancel" functionality when creating a VA Topic for HR Case management we should follow the same logic that is applied to the "Cancel" UI action that is attached to the HR Case table.The Cancel UI Actions visibility calls an API that will handle the logic for us. Here is the API: "sn_hr_core.hr_Case().canCancelCase()"Within Virtual agent designer, upon adding any button or options for the user to cancel an HR case we want to make a call to the above mentioned API before populating an option to cancel an HR Case. This will allow the VA topic to match the behavior of the existing HR Case form UIs.Additional InformationHere is an example of using the HR API to respect the "Prevent cancel" functionality in a VA topic. See lines 12-15 of the script for usage.