How to write the script for attached the file in workspace in popup window in sow workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2026 04:09 AM
I want to write the workspace client script ( pop up window ) for upload new version behavior it is just like the attachment functionalities as shown in screen shot in sow workspace . Could you please help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2026 05:41 AM
Hi @Community Alums ,
Could you explain bit more about the requirement please?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2026 02:20 PM
Hi @sunilsargam
I want to convert this code into workspace client script so that It will execute, this code is not work for sow workspace. this code is for "upload new version code" ui action for knowledge table
Hope you understand my requirement, same behavior which is working in Ui 16, I am implementing the same functionalities for SOW (for upload new version button)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2026 06:36 PM
Hi @Community Alums ,
paste your code in Workspace Client Script. and check workspace form button .
function onClick(g_form) {
var currentSysId = g_form.getUniqueValue();
var importModal = new GlideModal("kb_import_dialog");
importModal.setPreference("knowledge_sys_id", currentSysId);
importModal.setTitle("Import a Word File");
importModal.render();
}
If you found my solution helpful, please mark it as Helpful or Accepted Solution...!
thanks,
tejas
Email: adhalraotejas1018@gmail.com
LinkedIn: https://www.linkedin.com/in/tejas1018
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2026 02:17 AM
Hi @Tejas Adhalrao
this code is not working because GlideModel is not supported in workspace client script.

