<?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: Create change from problem, but do not insert in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214243#M1189391</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes the type is normal. the UI action create normal change.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;want it t to a new change record with prefilled data (few of fields) and wont create one. so the url shall show sys_id -1. Once I fill in required fields (other than pre filled), I should submit it and then a change will be created&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 10:07:00 GMT</pubDate>
    <dc:creator>Annirnita Dash1</dc:creator>
    <dc:date>2025-03-21T10:07:00Z</dc:date>
    <item>
      <title>Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214102#M1189337</link>
      <description>&lt;P&gt;Please help me out in creating a change request from problem but not inserting it. S&lt;SPAN&gt;ince the Ui action which creates a change record is saved through it that runs, the mandatory fields not filled in and&amp;nbsp; continue to show as required. It should navigate to sys_is -1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the code and I have commented out line where it inserts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; change = &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;"change_request"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.short_description = current.short_description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.description = current.description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.cmdb_ci = current.cmdb_ci;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.priority = current.priority;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.company = current.company;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.sys_domain = current.sys_domain;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.type = &lt;/SPAN&gt;&lt;SPAN&gt;'Normal'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//var sysID = change.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.rfc = sysID;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; mySysID = current.update();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage(&lt;/SPAN&gt;&lt;SPAN&gt;"Change "&lt;/SPAN&gt;&lt;SPAN&gt; + change.number + &lt;/SPAN&gt;&lt;SPAN&gt;" created"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(change);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setReturnURL(current);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 08:12:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214102#M1189337</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-21T08:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214126#M1189346</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i just correct the few thing in&amp;nbsp; above code is like type of Normal in backend is normal&lt;BR /&gt;&lt;BR /&gt;and please mention what &lt;SPAN&gt;EXACULTY issue you are getting ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 08:36:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214126#M1189346</guid>
      <dc:creator>Sanjay191</dc:creator>
      <dc:date>2025-03-21T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214134#M1189348</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you want to create the CHG or want user to be taken to new record with pre-filled data?&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>Fri, 21 Mar 2025 08:42:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214134#M1189348</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-21T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214137#M1189350</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Please use the below code in your UI action this should redirect your to new change request without inserting the change.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var changeFormUrl = 'https://INSTANCE_NAME.service-now.com/nav_to.do?uri=TABLE_NAME.do?sys_id=-1%26sysparm_query=caller_id='+current.FIELD_NAME; // Construct the URL 
action.setReturnURL(current); // Return URL to current record
action.setRedirectURL(changeFormUrl); // Landing page URL to new change form&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Please add your instance name and Table name in the URL followed by the mapping.&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Hope this information is helpful. If helpful please mark as solution accepted or helpful so that it will help future readers.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Best Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Babu&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 08:44:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214137#M1189350</guid>
      <dc:creator>Babu Govind</dc:creator>
      <dc:date>2025-03-21T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214241#M1189390</link>
      <description>&lt;P&gt;Hello Ankur,&lt;/P&gt;&lt;P&gt;I want it to go to a new change record with prefilled data (few of fields) and wont create one. Once I fill in required fields (other than pre filled), I should submit it and then a change will be created.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:05:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214241#M1189390</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-21T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214243#M1189391</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes the type is normal. the UI action create normal change.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;want it t to a new change record with prefilled data (few of fields) and wont create one. so the url shall show sys_id -1. Once I fill in required fields (other than pre filled), I should submit it and then a change will be created&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:07:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214243#M1189391</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-21T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214261#M1189393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;, Did you try to use templates?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:22:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214261#M1189393</guid>
      <dc:creator>GopikaP</dc:creator>
      <dc:date>2025-03-21T10:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214262#M1189394</link>
      <description>&lt;P&gt;Hi Gopika,&lt;/P&gt;&lt;P&gt;No, I have not done anything apart from above script.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:24:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214262#M1189394</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-21T10:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214264#M1189395</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then use this and send the fields in sysparm_query&lt;/P&gt;
&lt;P&gt;I included for 2 fields, please enhance for other fields as well which you want to pre populate&lt;/P&gt;
&lt;DIV style="color: #000000; background-color: #fffffe; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(&lt;/SPAN&gt;&lt;SPAN&gt;"/change_request.do?sys_id=-1&amp;amp;sysparm_query=short_description="&lt;/SPAN&gt;&lt;SPAN&gt; + current.short_description + &lt;/SPAN&gt;&lt;SPAN&gt;"^description"&lt;/SPAN&gt;&lt;SPAN&gt; + &amp;nbsp;current.description);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&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>Fri, 21 Mar 2025 10:25:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214264#M1189395</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-21T10:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214282#M1189400</link>
      <description>&lt;P&gt;Hello Ankur I tried this earlier and once again now also, even though it doesnot create the change anymore, but after I submit it, it is not getting related to the problem. Means I cant find the change in problem related list. Do i need to remove any lines of code&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:41:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214282#M1189400</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-21T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214298#M1189405</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is not meant to create new change, but will simply take user to the new CHG form with pre-filled data&lt;/P&gt;
&lt;P&gt;that's what you wanted.&lt;/P&gt;
&lt;P&gt;For that you can populate parent field of CHG with the current problem record sysId, so that it gets linked with the CHG. For this ensure parent field is present on the form. You can include that in URL like this&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;action.setRedirectURL("/change_request.do?sys_id=-1&amp;amp;sysparm_query=short_description=" + current.short_description + "^description" +  current.description + '^parent=' + current.sys_id);

&lt;/LI-CODE&gt;
&lt;P&gt;Now when you open Problem form in related list you will see that CHG as it's parent you already populated.&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>Fri, 21 Mar 2025 10:50:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3214298#M1189405</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-21T10:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3215580#M1189771</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&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>Mon, 24 Mar 2025 04:39:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3215580#M1189771</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-24T04:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217252#M1190197</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;sorry for replying late,&lt;/P&gt;&lt;P&gt;I tried adding line number 8 and used in url... but it is not working.&lt;/P&gt;&lt;P&gt;Can you point out the problem here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; change = &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;"change_request"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.short_description = current.short_description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.description = current.description;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.cmdb_ci = current.cmdb_ci;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.priority = current.priority;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.company = current.company;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.sys_domain = current.sys_domain;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.parent = current.sys_id;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;change.type = &lt;/SPAN&gt;&lt;SPAN&gt;'Normal'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//var sysID = change.insert();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;//action.setRedirectURL("/change_request.do?sys_id=-1&amp;amp;sysparm_query=short_description=" + current.short_description + "^description" + &amp;nbsp;current.description + '^parent=' + current.sys_id);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; url = &lt;/SPAN&gt;&lt;SPAN&gt;'change_request.do?sys_id=-1&amp;amp;sysparm_query='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'short_description='&lt;/SPAN&gt;&lt;SPAN&gt; + short_description + &lt;/SPAN&gt;&lt;SPAN&gt;'^description='&lt;/SPAN&gt;&lt;SPAN&gt; + description + &lt;/SPAN&gt;&lt;SPAN&gt;'^cmdb_ci='&lt;/SPAN&gt;&lt;SPAN&gt; + cmdb_ci + &lt;/SPAN&gt;&lt;SPAN&gt;'^priority='&lt;/SPAN&gt;&lt;SPAN&gt; + priority + &lt;/SPAN&gt;&lt;SPAN&gt;'^sys_domain='&lt;/SPAN&gt;&lt;SPAN&gt; + sys_domain + &lt;/SPAN&gt;&lt;SPAN&gt;'^company='&lt;/SPAN&gt;&lt;SPAN&gt; + company + &lt;/SPAN&gt;&lt;SPAN&gt;'^type='&lt;/SPAN&gt;&lt;SPAN&gt; + type + &lt;/SPAN&gt;&lt;SPAN&gt;'^parent='&lt;/SPAN&gt;&lt;SPAN&gt; + parent;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage(&lt;/SPAN&gt;&lt;SPAN&gt;"Change "&lt;/SPAN&gt;&lt;SPAN&gt; + change.number + &lt;/SPAN&gt;&lt;SPAN&gt;" created"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(url);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setReturnURL(current);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Mar 2025 11:29:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217252#M1190197</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-25T11:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217260#M1190201</link>
      <description />
      <pubDate>Tue, 25 Mar 2025 11:34:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217260#M1190201</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-25T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217288#M1190211</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/271803"&gt;@Annirnita Dash1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you are not inserting so you won't get the CHG number&lt;/P&gt;
&lt;P&gt;so these lines makes no point&lt;/P&gt;
&lt;P&gt;var change = new GlideRecord("change_request");&lt;BR /&gt;change.short_description = current.short_description;&lt;BR /&gt;change.description = current.description;&lt;BR /&gt;change.cmdb_ci = current.cmdb_ci;&lt;BR /&gt;change.priority = current.priority;&lt;BR /&gt;change.company = current.company;&lt;BR /&gt;change.sys_domain = current.sys_domain;&lt;BR /&gt;change.parent = current.sys_id;&lt;BR /&gt;change.type = 'Normal';&lt;BR /&gt;//var sysID = change.insert();&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>Tue, 25 Mar 2025 11:52:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217288#M1190211</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-25T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create change from problem, but do not insert</title>
      <link>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217302#M1190217</link>
      <description>&lt;P&gt;Sorry I got the fix, below line&amp;nbsp; I did, as of now with limited fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; url = &lt;/SPAN&gt;&lt;SPAN&gt;'change_request.do?sys_id=-1&amp;amp;sysparm_query='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'short_description='&lt;/SPAN&gt;&lt;SPAN&gt; + current.short_description + &lt;/SPAN&gt;&lt;SPAN&gt;'^type='&lt;/SPAN&gt;&lt;SPAN&gt; + current.type + &lt;/SPAN&gt;&lt;SPAN&gt;'^parent='&lt;/SPAN&gt;&lt;SPAN&gt; + current.sys_id;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Mar 2025 12:06:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/create-change-from-problem-but-do-not-insert/m-p/3217302#M1190217</guid>
      <dc:creator>Annirnita Dash1</dc:creator>
      <dc:date>2025-03-25T12:06:34Z</dc:date>
    </item>
  </channel>
</rss>

