<?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 Transitioning from the CSM portal to a URL outside of ServiceNow in CSM forum</title>
    <link>https://www.servicenow.com/community/csm-forum/transitioning-from-the-csm-portal-to-a-url-outside-of-servicenow/m-p/3329837#M44249</link>
    <description>&lt;P&gt;Is it possible to satisfy the following three conditions at the same time when transitioning from the portal to a URL outside of ServiceNow?&lt;BR /&gt;We would like to realize the following functions when transitioning to a URL outside of ServiceNow from a quick link or menu.&lt;BR /&gt;&lt;BR /&gt;(1) Click on the link&lt;BR /&gt;(2) Obtain the destination URL and user data from the user (customer_contact) data in the client script(assuming the destination URL and other data are registered in a specific table)&lt;BR /&gt;(3) Create the page to jump to using the data from (2) above.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 00:42:51 GMT</pubDate>
    <dc:creator>Minamizono</dc:creator>
    <dc:date>2025-07-22T00:42:51Z</dc:date>
    <item>
      <title>Transitioning from the CSM portal to a URL outside of ServiceNow</title>
      <link>https://www.servicenow.com/community/csm-forum/transitioning-from-the-csm-portal-to-a-url-outside-of-servicenow/m-p/3329837#M44249</link>
      <description>&lt;P&gt;Is it possible to satisfy the following three conditions at the same time when transitioning from the portal to a URL outside of ServiceNow?&lt;BR /&gt;We would like to realize the following functions when transitioning to a URL outside of ServiceNow from a quick link or menu.&lt;BR /&gt;&lt;BR /&gt;(1) Click on the link&lt;BR /&gt;(2) Obtain the destination URL and user data from the user (customer_contact) data in the client script(assuming the destination URL and other data are registered in a specific table)&lt;BR /&gt;(3) Create the page to jump to using the data from (2) above.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 00:42:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/transitioning-from-the-csm-portal-to-a-url-outside-of-servicenow/m-p/3329837#M44249</guid>
      <dc:creator>Minamizono</dc:creator>
      <dc:date>2025-07-22T00:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transitioning from the CSM portal to a URL outside of ServiceNow</title>
      <link>https://www.servicenow.com/community/csm-forum/transitioning-from-the-csm-portal-to-a-url-outside-of-servicenow/m-p/3330003#M44252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Here are the steps to redirect URL outside of Servicenow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Navigate to Service Portal - &amp;gt; Widgets and create a new widget. eg.&amp;nbsp;Redirect Menu&lt;/P&gt;
&lt;P&gt;Server Script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;(function() {
    // Get the key from the URL parameter
    var key = $sp.getParameter('key');
    // Fetch the system property (JSON string)
    var urlsJson = gs.getProperty('portal.menu.url');
    var obj = JSON.parse(urlsJson);
    var result =  obj[key];
    data.targetUrl = result;
})();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Client Script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;api.controller=function($scope, $window) {
  /* widget controller */
  var c = this;

  // Redirect to the URL fetched from the system property
  $window.location.href = $scope.data.targetUrl;


};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;2. Create a system property to store menu URLs&lt;/P&gt;
&lt;P&gt;Name - portal.menu.url&lt;/P&gt;
&lt;P&gt;Value - {"menu_A" : "&lt;A href="https://www.servicenow.com/" target="_self"&gt;https://www.servicenow.com/&lt;/A&gt;","menu_B" : "&lt;A href="https://www.google.com" target="_self"&gt;https://www.google.com/&lt;/A&gt;"}&lt;/P&gt;
&lt;P&gt;3. Navigate to Service Portal - &amp;gt; Pages and create a new page. E.g.&amp;nbsp;redirect_menu_url&lt;/P&gt;
&lt;P&gt;4. Add the widget created in step 1 to the new page&lt;/P&gt;
&lt;P&gt;5. Go to the Service Portal Menu Item and pass the key and page id in HREF/URL&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shruti_0-1753161019982.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/457481i5F876A00123D9607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shruti_0-1753161019982.png" alt="Shruti_0-1753161019982.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note : You can add the logic to the widget to fetch the logged in user data and obtain the destination URL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 05:15:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/transitioning-from-the-csm-portal-to-a-url-outside-of-servicenow/m-p/3330003#M44252</guid>
      <dc:creator>Shruti</dc:creator>
      <dc:date>2025-07-22T05:15:38Z</dc:date>
    </item>
  </channel>
</rss>

