How to hide Attachments from the side bar for specific condition in HR Agent workspace

Uma Maheswari S
Tera Contributor

Hi All,

 

We are looking for a solution where for certain HR Service we will have to hide the Attachment icon from the side bar of the Now Experience Workspace( HR Agent Workspace). 

 

We have tried the following steps:

  • Open UI Builder and go to the Record Page for the Base Agent Workspace (or the custom app) 
  • Click on the Menu at the top -> Developer -> Open Page Definition
  • Scroll down to the Child Screens related list
  • Click on the record in the Screen Collection column for any record where the Screen name is "Agent Assist" and/or "Attachments (or the element you do not want to display)
  • In the Screen Condition tried to add the below condition:" parent.table!=sn_hr_ef_employee_document^current.hr_service!= 'sdghjh2k'
  • But this seems to throw an error (screenshot)

     

  • UmaMaheswariS_0-1676374151379.png
  •  
4 REPLIES 4

RaghavSh
Kilo Patron

parent.table!=sn_hr_ef_employee_document^current.hr_service!= sdghjh2k

 

Above query should work, in encoded query we cannot pass the value in quotes.

Ideally your hr service sys_id should be without quotes.


Raghav
MVP 2023

yes , tried without adding quotes but didn't work. The Attachment icon was still visible for that HR service case.

@Uma Maheswari S were you able to save the record? or its still showing invalid update?


Raghav
MVP 2023

yes I was able to save the record with the HR service condition but the attachment icon was still visible.