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

Maik Skoddow
Tera Patron
Tera Patron

So what is your problem or question?

When changing the form for Agent Workspace you have to make sure that you selected the right view ("Workspace") in form designer.

The problem is that regardless of where you configure variables editor in the view, Agent Workspace will take out the Variables Editor from wherever you put it and create a separate section on the bottom of the form 

It seems, that rearranging the variable formatter is not possible.

The standard variable formatter uses a UI Macro with Jelly code, that is not supported in Agent Workspace.

see https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0853454

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.

Ankur Bawiskar
Tera Patron
Tera Patron

@Scytale 

The variable editor works only when added at the bottom of the form in Workspace view and not at any other position for Agent workspace.

That too in the Out of the box way i.e. getting added as section

As mentioned by Maik that could be the OOB behavior.

Possibly raise HI ticket with ServiceNow to get more details.

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader