<?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: ATF SCTask Variables in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391818#M48744</link>
    <description>&lt;P&gt;Hi Hannah,&amp;nbsp;I believe you should be able to do this by using one of the following OOTB steps:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Variable State Validation:&amp;nbsp;&lt;/STRONG&gt;This step can be used to check the state of the variable&amp;nbsp;such as (mandatory, visible, read-only, etc..)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Validate Variable Values:&amp;nbsp;&lt;/STRONG&gt;This step can be used to validate the actual value that was selected within that variable.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Set Variable Values:&lt;/STRONG&gt;&amp;nbsp;This step will populate a variable with a value.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;You have to make sure the task/form is first opened, then you can validate the variables. I hope this helps.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Please mark my answer as correct if it has helped you. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 21:38:45 GMT</pubDate>
    <dc:creator>Abdul30</dc:creator>
    <dc:date>2020-03-04T21:38:45Z</dc:date>
    <item>
      <title>ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391812#M48738</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I am working on building an Automated Test. I have successfully been able to open a catalog item, set the variable values, submit the catalog item, and then open an SCTask associated with that request. I can set values on that SCTask like Assigned to and State. You can dot-walk to the Requested Item, but is there a way to get to the variables? Like the custom variables that are created on the catalog item and put onto the task?&lt;/P&gt;
&lt;P&gt;We have a variable added on the task for this item and if it is answered Yes the workflow goes one way and if answered No it goes a different way. Trying to figure out how to set the value of this variable on the task. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:20:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391812#M48738</guid>
      <dc:creator>Hannah C</dc:creator>
      <dc:date>2019-06-12T23:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391813#M48739</link>
      <description>&lt;P&gt;Hi Hannah,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per your configuration mentioned above, all the variables can be accessed via ATF both on the Requested form page and the SCTASK form page. But for the same, all the variables should be present at the both level in general, then only it can be accessed through ATF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, when the variable is accessible in SCATSK page, setting the value to true or false will help the workflow proceed in the configured manner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know for any further queries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the answer as correct if it suffice your query.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;BR /&gt;Soumita.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 06:58:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391813#M48739</guid>
      <dc:creator>Soumita3</dc:creator>
      <dc:date>2019-06-13T06:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391814#M48740</link>
      <description>&lt;P&gt;Hi Hannah,&lt;/P&gt;
&lt;P&gt;Is the variable Yes/No is created in catalog item but as hidden that will only show in catalog task under Requested Item Variables tab for fulfiller to select yes or no? If yes, then you can pre-select that variable ahead even though it is hidden in catalog form. You can do that in Set Variable Values step. When it gets to the catalog task, it will automatically go to "Yes" workflow or "No" workflow because of pre-selected. If the custom variable doesn't create in catalog item but create in catalog task, then you can do Set Field Values step in task form to select Yes or No. I hope that helped!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:34:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391814#M48740</guid>
      <dc:creator>bbf3562</dc:creator>
      <dc:date>2019-06-13T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391815#M48741</link>
      <description>&lt;P&gt;Thank you for the input. Yes, it is from the catalog item. I have tried using the Set Variable Values step but it doesn't do anything to any of the variables even the ones that aren't hidden on the catalog item...&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 19:58:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391815#M48741</guid>
      <dc:creator>Hannah C</dc:creator>
      <dc:date>2019-06-14T19:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391816#M48742</link>
      <description>&lt;P&gt;In Set Variable Values step right after Open a Catalog Item step, were you able to select a hidden variable name and pick Yes or No? Also, did you monitor on ATF test runner to see at task form if it selected Yes or No?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:13:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391816#M48742</guid>
      <dc:creator>bbf3562</dc:creator>
      <dc:date>2019-06-14T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391817#M48743</link>
      <description>&lt;P&gt;Yes I was able to select the variable and set it to Yes. When I monitor the ATF test runner it is not selecting Yes or any of the values I put in the Set Variable Values step. It is not working for all variables, not just this one.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:16:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391817#M48743</guid>
      <dc:creator>Hannah C</dc:creator>
      <dc:date>2019-06-14T20:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: ATF SCTask Variables</title>
      <link>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391818#M48744</link>
      <description>&lt;P&gt;Hi Hannah,&amp;nbsp;I believe you should be able to do this by using one of the following OOTB steps:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Variable State Validation:&amp;nbsp;&lt;/STRONG&gt;This step can be used to check the state of the variable&amp;nbsp;such as (mandatory, visible, read-only, etc..)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Validate Variable Values:&amp;nbsp;&lt;/STRONG&gt;This step can be used to validate the actual value that was selected within that variable.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Products -&amp;gt; Set Variable Values:&lt;/STRONG&gt;&amp;nbsp;This step will populate a variable with a value.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;You have to make sure the task/form is first opened, then you can validate the variables. I hope this helps.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Please mark my answer as correct if it has helped you. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 21:38:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/atf-sctask-variables/m-p/1391818#M48744</guid>
      <dc:creator>Abdul30</dc:creator>
      <dc:date>2020-03-04T21:38:45Z</dc:date>
    </item>
  </channel>
</rss>

