Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Open Existing Task Record with Workspace

Ashley Snyder1
Giga Guru

I'm wanting to use g_aw.openRecord() to open a task type record. All of the documentation points to sys_user or something not task related at all.  The only example I see is the Copy Incident UI action, which I've tried to copy but it seems like it doesn't accept hardcoded sys_ids (for testing) or variables capture with getUniqueValue.

Has anyone done this? 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi Ashley,

I assume you know the API documentation for that method: https://developer.servicenow.com/dev.do#!/reference/api/paris/client/GlideAgentWorkspaceAPI#gaw-open...

As you can there it is possible to open a record by sys id.

For any examples it is helpful to filter OOTB UI actions for "Workspace Client Script contains g_aw.openRecord"

For example the "View Article" UI Action on the Knowledge Article Table:

find_real_file.png

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi Ashley,

I assume you know the API documentation for that method: https://developer.servicenow.com/dev.do#!/reference/api/paris/client/GlideAgentWorkspaceAPI#gaw-open...

As you can there it is possible to open a record by sys id.

For any examples it is helpful to filter OOTB UI actions for "Workspace Client Script contains g_aw.openRecord"

For example the "View Article" UI Action on the Knowledge Article Table:

find_real_file.png

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Thanks @Maik Skoddow, I was able to get the record to open using the g_aw methods. I'm unsure of what was going on in my PDI at the time, it seemed like there were some hidden restrictions on Task Type records but I now know that isn't the case.  I'll mark your answer as correct.