<?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: Catalog Item Checkbox variable always returning false in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477397#M134323</link>
    <description>&lt;P&gt;Okay, figured it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my Activity I had declared the force_change variable as a Boolean. In the workflow, when I told the activity what values I wanted to use, force_change was a checkbox that was unchecked.&lt;/P&gt;
&lt;P&gt;When I changed the type of variable of force_change to String, the workflow activity input was a text box and I was able to put&amp;nbsp;workflow.scratchpad.force_change = current.variables.force_change; in there. That worked.&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 18:16:12 GMT</pubDate>
    <dc:creator>juriggs</dc:creator>
    <dc:date>2019-06-21T18:16:12Z</dc:date>
    <item>
      <title>Catalog Item Checkbox variable always returning false</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477393#M134319</link>
      <description>&lt;P&gt;I have a checkbox variable in a catalog item, and no matter whether the box is checked or not upon the Order, the value returned if "false".&lt;/P&gt;
&lt;P&gt;The code I'm using to retrieve the value is:&lt;/P&gt;
&lt;P&gt;workflow.scratchpad.force_change = current.variables.force_change;&lt;/P&gt;
&lt;P&gt;where force_change is the name of the variable in the catalog item and the input in the PowerShell activity in the Workflow.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:45:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477393#M134319</guid>
      <dc:creator>juriggs</dc:creator>
      <dc:date>2019-06-21T14:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Item Checkbox variable always returning false</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477394#M134320</link>
      <description>&lt;P&gt;Do you have any client script running against this variable?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:51:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477394#M134320</guid>
      <dc:creator>brianlan25</dc:creator>
      <dc:date>2019-06-21T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Item Checkbox variable always returning false</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477395#M134321</link>
      <description>&lt;P&gt;No. Just the script in the "Run Script" activity of the Workflow.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:57:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477395#M134321</guid>
      <dc:creator>juriggs</dc:creator>
      <dc:date>2019-06-21T14:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Item Checkbox variable always returning false</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477396#M134322</link>
      <description>&lt;P&gt;Try this??&lt;/P&gt;
&lt;P&gt;workflow.scratchpad.for = current.variables.force_change;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:00:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477396#M134322</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-06-21T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Item Checkbox variable always returning false</title>
      <link>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477397#M134323</link>
      <description>&lt;P&gt;Okay, figured it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my Activity I had declared the force_change variable as a Boolean. In the workflow, when I told the activity what values I wanted to use, force_change was a checkbox that was unchecked.&lt;/P&gt;
&lt;P&gt;When I changed the type of variable of force_change to String, the workflow activity input was a text box and I was able to put&amp;nbsp;workflow.scratchpad.force_change = current.variables.force_change; in there. That worked.&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 18:16:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/catalog-item-checkbox-variable-always-returning-false/m-p/1477397#M134323</guid>
      <dc:creator>juriggs</dc:creator>
      <dc:date>2019-06-21T18:16:12Z</dc:date>
    </item>
  </channel>
</rss>

