To Display an error message in HR Agent workspace

Jameel Shaheen1
Tera Contributor

Hi,
I want to display an error message immediately when a user attempts to transfer a case to an invalid HR Service. I tried using a Before Insert Business Rule, but the error only appears after a manual page reload. In the HR Agent Workspace, the transfer pop-up requires a COE and HR Service; if the service is invalid, the error should pop up as soon as the user clicks 'OK'. I have already tried adding refresh code to the Business Rule and modifying the OOB 'Transfer Case' UI Action, but neither worked. Attached Image for reference.

Please give any solution.

Thanks,

Shaheen.

image.png.

3 REPLIES 3

Kohei Tominaga1
Kilo Sage

Hi, @Jameel Shaheen1 

Deactivated HR service cannot be selected during transferring case.
Why don't you deactivate those invalid HR services?

 

Best Regards,

Kohei

Ankur Bawiskar
Tera Patron

@Jameel Shaheen1 

see this link and it has approach but it involves lot of customization to OOTB script

Exclude HR Services from Transfer Case HR Service dropdown 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

Thanks for the reply. I tried the suggested article,In which they asked to exclude the unwanted HR service, but that also dint work. I am working in HR agent workspace so I made change in UI page as well created a new script include as instructed.I have attached the xml of UI page as well as image of script include which I created