<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Agent Chat UI Actions to open in Native View in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502151#M975213</link>
    <description>&lt;P&gt;I do not know, if you can redirect the function into the legacy window. But I wouldn't suggest it, because if you do so, you will loose the ability to chat with your customer/caller will creating the incident/problem. Based on my experience users can easily work with the workspace without having big changes in their way of working. The most important is, that the field positions are similar and than it is often more wanted, because you can work with several tabs within browser window. So keep it out of the box and spend the time in short but great user trainings would be my suggestion.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 13:57:20 GMT</pubDate>
    <dc:creator>SebastianKunzke</dc:creator>
    <dc:date>2023-03-10T13:57:20Z</dc:date>
    <item>
      <title>Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502137#M975207</link>
      <description>&lt;P&gt;We are building out our instance with the new Tokyo Next Experience.&amp;nbsp; We are using Agent Chat within the Service Operations Workspace.&amp;nbsp; We are rolling out the next experience in phases.&amp;nbsp; Trying to figure out if there is a way to redirect the Interaction UI Actions for "Create Incident" and "Create Request" in the native forms instead of the workspace forms.&amp;nbsp; I have tried to add the below addendum to the script in various formats but can't seem to get it right.&amp;nbsp; Any insight would be hugely appreciated!&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;function onClick(g_form) {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;var sys_id = g_form.getUniqueValue();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;open('/nav_to.do?uri=incident.do?sys_id=' + sys_id, '_self');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current OOB Script is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;var canCreateIncident = false;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if ((current.isNewRecord() &amp;amp;&amp;amp; current.canCreate()) || (!current.isNewRecord() &amp;amp;&amp;amp; current.canWrite()))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;canCreateIncident = current.update();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;else&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;canCreateIncident = true;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if (canCreateIncident) {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;var inc = new GlideRecord("incident");&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;inc.initialize();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;inc.caller_id = current.opened_for;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;inc.short_description = current.short_description;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if (gs.getProperty("com.snc.incident.create_from_interaction.save") === 'true') {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;inc.work_notes = gs.getMessage('Incident created from Interaction {0}', current.number);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;var incSysId = inc.insert();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if (incSysId) {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;var interactionRelatedGR = new GlideRecord("interaction_related_record");&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;interactionRelatedGR.initialize();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;interactionRelatedGR.interaction = current.sys_id;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;interactionRelatedGR.document_table = 'incident';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;interactionRelatedGR.document_id = incSysId;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;interactionRelatedGR.insert();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;action.openGlideRecord(inc);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;new InteractionRelationshipUtil().copyAttachments(current, inc);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Screen shot of the UI Action in question:&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/246422iB20335BE6A2139D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 13:47:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502137#M975207</guid>
      <dc:creator>Erin Mills</dc:creator>
      <dc:date>2023-03-10T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502151#M975213</link>
      <description>&lt;P&gt;I do not know, if you can redirect the function into the legacy window. But I wouldn't suggest it, because if you do so, you will loose the ability to chat with your customer/caller will creating the incident/problem. Based on my experience users can easily work with the workspace without having big changes in their way of working. The most important is, that the field positions are similar and than it is often more wanted, because you can work with several tabs within browser window. So keep it out of the box and spend the time in short but great user trainings would be my suggestion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 13:57:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502151#M975213</guid>
      <dc:creator>SebastianKunzke</dc:creator>
      <dc:date>2023-03-10T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502160#M975218</link>
      <description>&lt;P&gt;Unfortunately for us there are many Fields and UI Actions that would need to be migrated to the workspace forms in order to be "apples to apples".&amp;nbsp; We've locked down the Agent Chat and Workspace Experience to just the Service Desk for now.&amp;nbsp; We have a roadmap to open that up soon, we just need an alternative for a short period of time.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 14:09:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502160#M975218</guid>
      <dc:creator>Erin Mills</dc:creator>
      <dc:date>2023-03-10T14:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502199#M975233</link>
      <description>&lt;P&gt;In this case I would suggest that you open the incident / problem in the workspace and then create a UI action on the incident screen "Continue incident".&amp;nbsp;&lt;BR /&gt;The same way ServiceNow is doing it for changes and problems, because not all functions are available yet. There you can find a "continue ..." button after the creation.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 14:37:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502199#M975233</guid>
      <dc:creator>SebastianKunzke</dc:creator>
      <dc:date>2023-03-10T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502274#M975258</link>
      <description>&lt;P&gt;That could be a solution, then I could just use that on click script as a new UI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;function onClick(g_form) {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;var sys_id = g_form.getUniqueValue();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;open('/nav_to.do?uri=incident.do?sys_id=' + sys_id, '_self');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:12:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502274#M975258</guid>
      <dc:creator>Erin Mills</dc:creator>
      <dc:date>2023-03-10T15:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Chat UI Actions to open in Native View</title>
      <link>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502304#M975274</link>
      <description>&lt;P&gt;Yes, that should working.&lt;/P&gt;
&lt;P&gt;Here the example from "Continue problem"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKunzke_0-1678462590395.png" style="width: 548px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/246463i3EDF9EB3DD7D2D5D/image-dimensions/548x191?v=v2" width="548" height="191" role="button" title="SebastianKunzke_0-1678462590395.png" alt="SebastianKunzke_0-1678462590395.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:36:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/agent-chat-ui-actions-to-open-in-native-view/m-p/2502304#M975274</guid>
      <dc:creator>SebastianKunzke</dc:creator>
      <dc:date>2023-03-10T15:36:55Z</dc:date>
    </item>
  </channel>
</rss>

