<?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 UI actions Create child incident; Solved! in ServiceNow Studio forum</title>
    <link>https://www.servicenow.com/community/servicenow-studio-forum/ui-actions-create-child-incident-solved/m-p/3432982#M4906</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaasyaV71587518_0-1763682171589.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/484936iCBA0264B8F3D3F86/image-size/medium?v=v2&amp;amp;px=400" alt="LaasyaV71587518_0-1763682171589.png" title="LaasyaV71587518_0-1763682171589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaasyaV71587518_0-1763683984406.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/484940i5E68941EC51AE218/image-size/medium?v=v2&amp;amp;px=400" alt="LaasyaV71587518_0-1763683984406.png" title="LaasyaV71587518_0-1763683984406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello! this code is not working with the options I have selected. I am trying to create a child incident button using UI actions. I am using Xanadu. The "Create Child Incident" button is not showing on the incident form.&amp;nbsp;&lt;BR /&gt;Any tips appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi! This problem has been solved! I figured out that the missing parts of the code was&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; childID = cinc.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;so the entire code all&amp;nbsp; together would be&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; cinc = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'incident'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.initialize();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.short_description = current.short_description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.category = current.category;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.subcategory = current.subcategory;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.priority = current.priority;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.work_notes = &lt;/SPAN&gt;&lt;SPAN&gt;'new incident has been created from '&lt;/SPAN&gt;&lt;SPAN&gt; + current.number;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; childID = cinc.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage(&lt;/SPAN&gt;&lt;SPAN&gt;'Child Incident has been created '&lt;/SPAN&gt;&lt;SPAN&gt; + cinc.number);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(cinc);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 21 Nov 2025 02:35:19 GMT</pubDate>
    <dc:creator>LaasyaV71587518</dc:creator>
    <dc:date>2025-11-21T02:35:19Z</dc:date>
    <item>
      <title>UI actions Create child incident; Solved!</title>
      <link>https://www.servicenow.com/community/servicenow-studio-forum/ui-actions-create-child-incident-solved/m-p/3432982#M4906</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaasyaV71587518_0-1763682171589.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/484936iCBA0264B8F3D3F86/image-size/medium?v=v2&amp;amp;px=400" alt="LaasyaV71587518_0-1763682171589.png" title="LaasyaV71587518_0-1763682171589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaasyaV71587518_0-1763683984406.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/484940i5E68941EC51AE218/image-size/medium?v=v2&amp;amp;px=400" alt="LaasyaV71587518_0-1763683984406.png" title="LaasyaV71587518_0-1763683984406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello! this code is not working with the options I have selected. I am trying to create a child incident button using UI actions. I am using Xanadu. The "Create Child Incident" button is not showing on the incident form.&amp;nbsp;&lt;BR /&gt;Any tips appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi! This problem has been solved! I figured out that the missing parts of the code was&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; childID = cinc.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;so the entire code all&amp;nbsp; together would be&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; cinc = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'incident'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.initialize();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.short_description = current.short_description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.category = current.category;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.subcategory = current.subcategory;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.priority = current.priority;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;cinc.work_notes = &lt;/SPAN&gt;&lt;SPAN&gt;'new incident has been created from '&lt;/SPAN&gt;&lt;SPAN&gt; + current.number;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; childID = cinc.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage(&lt;/SPAN&gt;&lt;SPAN&gt;'Child Incident has been created '&lt;/SPAN&gt;&lt;SPAN&gt; + cinc.number);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(cinc);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Nov 2025 02:35:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-studio-forum/ui-actions-create-child-incident-solved/m-p/3432982#M4906</guid>
      <dc:creator>LaasyaV71587518</dc:creator>
      <dc:date>2025-11-21T02:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: UI actions Create child incident; Solved!</title>
      <link>https://www.servicenow.com/community/servicenow-studio-forum/ui-actions-create-child-incident-solved/m-p/3454151#M5189</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/989236"&gt;@LaasyaV71587518&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var cinc = new GlideRecord('incident');&lt;BR /&gt;cinc.initialize();&lt;/P&gt;&lt;P&gt;cinc.short_description = current.short_description;&lt;BR /&gt;cinc.category = current.category;&lt;BR /&gt;cinc.subcategory = current.subcategory;&lt;BR /&gt;cinc.priority = current.priority;&lt;/P&gt;&lt;P&gt;cinc.work_notes = 'New incident has been created from ' + current.number;&lt;/P&gt;&lt;P&gt;var childID = cinc.insert(); // This actually creates the record&lt;/P&gt;&lt;P&gt;gs.addInfoMessage('Child Incident has been created: ' + cinc.number);&lt;BR /&gt;action.setRedirectURL(cinc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/989236"&gt;@LaasyaV71587518&lt;/a&gt;&amp;nbsp;- Please mark this Solution as Accepted and thumbs up if you find helpful!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 02:24:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-studio-forum/ui-actions-create-child-incident-solved/m-p/3454151#M5189</guid>
      <dc:creator>Matthew_13</dc:creator>
      <dc:date>2025-12-22T02:24:33Z</dc:date>
    </item>
  </channel>
</rss>

