- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 06:46 AM
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:
Even if the Variable editor is in a diffrent place altogether:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 08:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 07:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2021 11:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 07:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 07:22 AM
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.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader