<?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 How to make a change request Active to false in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391760#M48686</link>
    <description>&lt;P&gt;I have a change request whose state was closed incomplete. But still active shows true instead of false.&lt;/P&gt;
&lt;P&gt;How can I manually make active false?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 07:02:26 GMT</pubDate>
    <dc:creator>Mounika66</dc:creator>
    <dc:date>2020-05-13T07:02:26Z</dc:date>
    <item>
      <title>How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391760#M48686</link>
      <description>&lt;P&gt;I have a change request whose state was closed incomplete. But still active shows true instead of false.&lt;/P&gt;
&lt;P&gt;How can I manually make active false?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:02:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391760#M48686</guid>
      <dc:creator>Mounika66</dc:creator>
      <dc:date>2020-05-13T07:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391761#M48687</link>
      <description>&lt;P&gt;if you are an admin you can manually change it from list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/141210iD496B826FD7592DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but proper root cause of this issue can be fixed from your workflow, you need to check which activity set the state value as closed incomplete and there add active is false also.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:08:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391761#M48687</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-05-13T07:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391762#M48688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I cannot manually change from the list. Is there any other way I can make it false?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:36:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391762#M48688</guid>
      <dc:creator>Mounika66</dc:creator>
      <dc:date>2020-05-13T07:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391763#M48689</link>
      <description>&lt;P&gt;background script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var gr = new GlideRecord('change_request');&lt;/P&gt;
&lt;P&gt;gr.addEncodedQuery('state=4^active=true'); &lt;STRONG&gt;//make sure about&amp;nbsp;closed incomplete state value&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;gr.query();&lt;/P&gt;
&lt;P&gt;while(gr.next()){&lt;/P&gt;
&lt;P&gt;gr.active=false;&lt;/P&gt;
&lt;P&gt;gr.setWorkflow(false);&lt;/P&gt;
&lt;P&gt;gr.update();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:50:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391763#M48689</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-05-13T07:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391764#M48690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you try with background script ?please let me if you need any help with this.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pooja M&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:50:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391764#M48690</guid>
      <dc:creator>Pooja Mallikarj</dc:creator>
      <dc:date>2020-05-13T07:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391765#M48691</link>
      <description>&lt;P&gt;If you have single change request and you want to make that as false then you can use below code.&lt;/P&gt;
&lt;P&gt;var gr=new GlideRecord('change_request');&lt;BR /&gt;gr.addQuery('sys_id','sys id of your change request');&lt;BR /&gt;gr.query();&lt;BR /&gt;if(gr.next())&lt;BR /&gt;{&lt;BR /&gt;gr.active='false';&lt;BR /&gt;gr.setWorkflow(false);&lt;BR /&gt;gr.update();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pooja M&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:58:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391765#M48691</guid>
      <dc:creator>Pooja Mallikarj</dc:creator>
      <dc:date>2020-05-13T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391766#M48692</link>
      <description>&lt;P&gt;for single record&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var gr=new GlideRecord('change_request');&lt;BR /&gt;gr.get('sys id of your change request');&lt;BR /&gt;gr.active=false;&lt;BR /&gt;gr.setWorkflow(false);&lt;BR /&gt;gr.update();&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:59:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391766#M48692</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-05-13T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a change request Active to false</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391767#M48693</link>
      <description>&lt;P&gt;Hi Mounika,&lt;/P&gt;
&lt;P&gt;OOB Close Incomplete choice is not available in the change_request please find the snipped below for reference.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/8A378474714559DDCEBEB3415D4958A5/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Active field is editable for the admin, It seems like your state field is configured and you have some restrictions configured on writing of active field. If there is no restrictions on writing of active field then&amp;nbsp; reconfirm that you have the admin role to change the field manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &lt;STRONG&gt;"mark_closed" business rule on 'change_request' table changes the active field to false&lt;/STRONG&gt;. Verify that it has the filter condition added closed incomplete to fix this issue permanently.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/8A378474714559DDCEBEB3415D4958A5/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/8A378474714559DDCEBEB3415D4958A5/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Kindly mark my answer as Correct and Helpful based on the Impact.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Alok&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 08:00:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-a-change-request-active-to-false/m-p/1391767#M48693</guid>
      <dc:creator>AlokD6499012040</dc:creator>
      <dc:date>2020-05-13T08:00:30Z</dc:date>
    </item>
  </channel>
</rss>

