Skip to content

g_form console access in workspace does not work in HR Agent workspace (Utah) #647

Open

Description

@ab7289

In Utah version of ServiceNow, it appears that the script provided in https://github.com/ServiceNowDevProgram/code-snippets/blob/main/Client%20Scripts/g_form%20console%20access%20in%20workspace/script.js no longer works. It appears that the element 'sn-workspace-content' is not part of/no longer exists in the HR agent workspace, as the function fails on the first line.

Screenshot 2023-08-31 at 1 01 23 PM

Activity

  1. rajanarahul93 commented on Oct 4, 2023

    @rajanarahul93

    "Please assign the script compatibility issue in the Utah version of ServiceNow to me for resolution." #647

  2. Lacah commented on Oct 4, 2023

    @Lacah
    Contributor

    @rajanarahul93 all yours! Thanks!

  3. SapphicFire commented on Oct 14, 2023

    @SapphicFire
    Contributor

    Hi @rajanarahul93 - just following up to see where this is at, and if you'll be able to do this one?

    Want to ensure we keep these moving and open it up to the broader group if needed

  4. Lacah commented on Sep 29, 2024

    @Lacah
    Contributor

    Open for new contributors in 2024.

  5. kmahesh18 commented on Oct 17, 2024

    @kmahesh18

    assign me ..

  6. Lacah commented on Oct 28, 2024

    @Lacah
    Contributor

    @kmahesh18 any updates on this issue? Ar you working on it or should we let someone else do this?

  7. Akshaykomar890 commented on Oct 1, 2025

    @Akshaykomar890

    @Lacah @earlduque Can I work on this ?

  8. wiz0floyd commented on Oct 1, 2025

    @wiz0floyd
    Contributor

    @Lacah @earlduque Can I work on this ?

    Assigned it to you!

  9. SapphicFire commented on Oct 12, 2025

    @SapphicFire
    Contributor

    Unassigning as no action has occured in 10 days

  10. lauri457 commented on Oct 15, 2025

    @lauri457
    Contributor

    I tried to figure this out and it seems that the gForm object in the deprecated Agent workspace at least seems to be in the state of the "now-record-form-connected" component but I couldn't find a way to access the state of a component outside of the next exp devtools.

    Image

    For configurable workspaces the gform object is in the component props and can be accessed easily from component "sn-form-data-connected" in nowRecordFormBlob.gForm. There are multiple repos with tools to query unknown shadowdom trees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions