UI Actions in Agent workspace

Saisree Kota
Tera Contributor

Hi All,

 

I have created 2 UI actions with same name but different conditions.

In the conditions i used scratchpad to validate some data.

 

The UI Action is working in Native UI but in Agent Workspace Both UI actions are visible irrespective of the conditions.

In Native only 1 UI action is visible based on the Condition.

 

Any ideas/ suggestions to hide based on conditions in Agent Workspace.

 

Thanks,

saisree

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Saisree Kota 

you must be using display BR on that table.

So did you try checking in alert if the scratchpad variable is showing correct value

Also if that doesn't work then use UI action condition with script include and then show/hide

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

@Saisree Kota 

g_scratchpad works only in client side, not sure how it's working in native UI for condition field.

Please use script include and call it from Condition field so that it works in both native + workspace

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Saisree Kota 

you must be using display BR on that table.

So did you try checking in alert if the scratchpad variable is showing correct value

Also if that doesn't work then use UI action condition with script include and then show/hide

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Saisree Kota
Tera Contributor

Hi @Ankur Bawiskar ,

 

Scratchpad is Working okay.

UI action is also working in Native UI but showing 2 ui actions in the Agent Workspace.

 

Thanks

saisree

@Saisree Kota 

share UI action condition screenshot

are you using scratchpad variable in condition field?

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

Saisree Kota
Tera Contributor

@Ankur Bawiskar 

SaisreeKota_0-1704182785985.png

Yes, I am using scratchpad condition in UI action

 

Regards

saisree