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  

Agent Workspace Variable Editor order

Scytale
Mega Contributor

Hi,

I have a requirement to re-order the Agent Workspace view for Cases with the requirement of variables not appearing on the bottom of the form:

find_real_file.png

Even if the Variable editor is in a diffrent place altogether:

find_real_file.png

1 ACCEPTED SOLUTION

@Ankur Bawiskar 

Actually One of my colleagues thought of a way around it. It is impossible to change the order of the variables section trough any configuration yes. The way he was able to solve it was trough a client script and modification of section order:

this.document.querySelector('sn-workspace-main > sn-workspace-content').shadowRoot.querySelectorAll('now-record-form-connected')[0].shadowRoot.querySelector('sn-form-internal-workspace-form-layout').shadowRoot.querySelector('now-record-form-blob').shadowRoot.querySelector('sn-form-internal-tabs').shadowRoot.querySelector('sn-form-internal-tab-contents').shadowRoot.querySelector('now-record-form-section-column-layout').shadowRoot.querySelectorAll('section').item(0).style.order=1

 Which in it self is a dirty way around the problem which should be handled long time ago in Agent WS. We can close the topic.

View solution in original post

7 REPLIES 7

@Ankur Bawiskar 

Actually One of my colleagues thought of a way around it. It is impossible to change the order of the variables section trough any configuration yes. The way he was able to solve it was trough a client script and modification of section order:

this.document.querySelector('sn-workspace-main > sn-workspace-content').shadowRoot.querySelectorAll('now-record-form-connected')[0].shadowRoot.querySelector('sn-form-internal-workspace-form-layout').shadowRoot.querySelector('now-record-form-blob').shadowRoot.querySelector('sn-form-internal-tabs').shadowRoot.querySelector('sn-form-internal-tab-contents').shadowRoot.querySelector('now-record-form-section-column-layout').shadowRoot.querySelectorAll('section').item(0).style.order=1

 Which in it self is a dirty way around the problem which should be handled long time ago in Agent WS. We can close the topic.

Hello Ankur Bawiskar
This is not working on the configurable workspace. 
The variables are not showing.
any idea about that?

Pranesh072
Mega Sage

just goto form layout in workspace view, you can remove it from there.