<?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: Help trying to get to do action URL in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3317049#M543538</link>
    <description>&lt;P&gt;We have gone for option 1 at the moment using this code to get all the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get all text from widget "To-dos task Line Item".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; text = top.document.getElementsByClassName(&lt;/SPAN&gt;&lt;SPAN&gt;'va4716c8f53d3130030f3ddeeff7b1288'&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;].innerText;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;We then parse that text to get the UNT number.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Jul 2025 12:12:51 GMT</pubDate>
    <dc:creator>arobertson</dc:creator>
    <dc:date>2025-07-10T12:12:51Z</dc:date>
    <item>
      <title>Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315472#M543415</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a few weeks now we have been stumped technically with a requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using universal requests to serve up a catalog item on the portal. The problem is that we want to get hold of the record number in order to use it in an onLoad catalog client script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the URL never changes "&lt;A href="https://instancename.service-now.com/sp?id=hrm_todos_page" target="_blank" rel="noopener"&gt;https://instancename.service-now.com/sp?id=hrm_todos_page&lt;/A&gt;" we are unable to pass/read any parameters for use in our onLoad catalog client script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I inspect the page, I can see the URL in the console.&amp;nbsp;Is there anyway to get this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try the following but it only gave me the cat name sys_id and not the universal task sys_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var incSysid = g_form.getUniqueValue();
    alert(incSysid);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Jul 2025 11:22:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315472#M543415</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-09T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315611#M543425</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on that "hrm_todos_page" page you get to know the tasks&lt;/P&gt;
&lt;P&gt;what's your actual business requirement?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 12:32:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315611#M543425</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-09T12:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315620#M543426</link>
      <description>&lt;P&gt;The requirement is when a mobile or laptop is assigned to a user, they get an action to complete to confirm they have received the device and adhere to certain policy's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand what you mean by "&lt;SPAN&gt;on that "hrm_todos_page" page you get to know the tasks&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 12:36:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315620#M543426</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-09T12:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315678#M543430</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not sure if i understand correctly, but your requirement is that when you clicked any item from that list it should open the catalog item for that record?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:21:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315678#M543430</guid>
      <dc:creator>GeraldKirby</dc:creator>
      <dc:date>2025-07-09T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315685#M543431</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the "hrm_todos_page" portal page list down the Tasks assigned to the user who logins to portal.&lt;/P&gt;
&lt;P&gt;when they click the Task what next?&lt;/P&gt;
&lt;P&gt;Do you want some specific record to open when they click the task?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1752067508589.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/454624iCA0A597EEF15AFAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1752067508589.png" alt="AnkurBawiskar_0-1752067508589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:25:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315685#M543431</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-09T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315705#M543433</link>
      <description>&lt;P&gt;We have the correct record showing, as when using universal requests, it renders the catalog item for the user to complete.&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="Screenshot 2025-07-09 143438.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/454629iC865AE495B7FED82/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-09 143438.png" alt="Screenshot 2025-07-09 143438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The catalog item is initiate state so does not actually exist as a RITM yet till they hit submit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to get hold of the number in red, so that I can use it in my onLoad client script to conduct an script include call.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:37:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315705#M543433</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-09T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315707#M543434</link>
      <description>&lt;P&gt;Please see above post where I have explained it a bit more.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:38:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315707#M543434</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-09T13:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315716#M543436</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't worked on Universal request.&lt;/P&gt;
&lt;P&gt;what type of form is that? Is that a catalog item form?&lt;/P&gt;
&lt;P&gt;Did you write onLoad catalog client script and use this to see what came in URL?&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var url = top.location.href;
alert(url);&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:44:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315716#M543436</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-09T13:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315725#M543438</link>
      <description>&lt;P&gt;Forgetting the universal request and catalog part, I think the issue is the "hrm_todos_page" as even out of the box the URL never changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it just prints outs:&amp;nbsp;&lt;A href="https://instancename.service-now.com/sp?id=hrm_todos_page" target="_blank"&gt;https://instancename.service-now.com/sp?id=hrm_todos_page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect you would get the same as well on the screenshot you posted.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:51:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315725#M543438</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-09T13:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315743#M543439</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's correct, the page URL won't change so you won't get anything in the url in script.&lt;/P&gt;
&lt;P&gt;I doubt this will work with the OOTB config.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:58:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3315743#M543439</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-09T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3316978#M543534</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/99236"&gt;@arobertson&lt;/a&gt;&amp;nbsp;, that form loaded on the right side looks like an embedded widget. Try to identify that widget and check the input parameters(most likely sys_id) used to render the form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can assign the value of that parameter to&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$scope.page.g_scratchpad.&amp;lt;name you desire&amp;gt; in the client controller. You can then try to access this scratchpad variable in your catalog client script.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Not sure if this will work but you can try.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jul 2025 11:15:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3316978#M543534</guid>
      <dc:creator>GeraldKirby</dc:creator>
      <dc:date>2025-07-10T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3317043#M543537</link>
      <description>&lt;P&gt;Just an update as ServiceNow provided a few recommendations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some recommendations that we can suggest:&lt;BR /&gt;&lt;BR /&gt;Recommendation 1. Retrieving the UNT number from the DOM, since the widget does not change, you can use the widget's sys_id as class name by prefixing v and get the innerText of the DOM element, and parse the text to get the UNT number&lt;BR /&gt;&lt;BR /&gt;Recommendation 2. You can also customize the widget to get the data object from the parent widget and fill the form&lt;BR /&gt;&lt;BR /&gt;Recommendation 3. In this, you can submit the catalog item beforehand when the UNT gets created, and assign a task to the requested user to accept the assets. In this, a task is assigned to the user, and you can create custom actions like "I accept assets" with all variables shown, which can be shown on the task from the RITM for the Todo page.&lt;BR /&gt;&lt;BR /&gt;Docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/docs/bundle/yokohama-employee-service-management/page/product/employee-center/concept/setup-task-mgmt.html" target="_blank"&gt;https://www.servicenow.com/docs/bundle/yokohama-employee-service-management/page/product/employee-center/concept/setup-task-mgmt.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 12:11:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3317043#M543537</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-10T12:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to get to do action URL</title>
      <link>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3317049#M543538</link>
      <description>&lt;P&gt;We have gone for option 1 at the moment using this code to get all the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get all text from widget "To-dos task Line Item".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; text = top.document.getElementsByClassName(&lt;/SPAN&gt;&lt;SPAN&gt;'va4716c8f53d3130030f3ddeeff7b1288'&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;].innerText;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;We then parse that text to get the UNT number.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jul 2025 12:12:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/help-trying-to-get-to-do-action-url/m-p/3317049#M543538</guid>
      <dc:creator>arobertson</dc:creator>
      <dc:date>2025-07-10T12:12:51Z</dc:date>
    </item>
  </channel>
</rss>

