Issue with UI Action

Sathwik1
Tera Expert

Sathwik1_0-1766075086200.png

My UI Action is not working in the workspace... can someone please guide what I need to write in the workspace client script?

 

@Ankur Bawiskar  @Dr Atul G- LNG 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

In Workspace, the UX declarative action works as far as I know, so you need to work in that direction.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankith Sharma
Giga Guru

Hi @Sathwik1 

Can you confirm whether the UI Action is intended to :

• only perform client-side validation and save the record, or
• trigger server-side processing (for example, StateFlow) when clicked?

 

In Configurable Workspace, UI Actions are client-only, so any server-side logic would need to be handled via a Business Rule or Flow Designer.

 

Regards,
-Ankit
Linkedin : https://www.linkedin.com/in/sharmaankith/

maheshkhatal
Mega Sage
Mega Sage

@Sathwik1  Now able to figure our what's going wrong with your functionality. But, suggestion from my end would be to create a separate UI Action(By same name) but write everything in the  Workspace Client Script and manage Server side updates via GlideAjax(create  a script include for that). I did similar thing recently (Or else you can create declarative actions too).  

maheshkhatal_0-1766076693579.png

 

Mark my response as helpful if it helped resolve your query.

Thanks,

Mahesh.