<?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 retrieve the properties of an IF workflow activity using ServiceNow API? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-retrieve-the-properties-of-an-if-workflow-activity-using/m-p/3125718#M1164687</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hello people,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I am exploring ServiceNow Rest API and I have a doubt which I could not answer alone.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Given that I have an activity which the activity definition type is an IF: How can I retrieve information like the conditions of the IF activity (not the conditions related to transitions, the condiions related to the IF activity definition), whether the advanced flag is enabled, and the script (if there is one) of the IF activity?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-11 203824.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/407268i391780F6979B74D5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-12-11 203824.png" alt="Screenshot 2024-12-11 203824.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Dec 2024 00:20:25 GMT</pubDate>
    <dc:creator>leviermonai</dc:creator>
    <dc:date>2024-12-12T00:20:25Z</dc:date>
    <item>
      <title>How to retrieve the properties of an IF workflow activity using ServiceNow API?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-retrieve-the-properties-of-an-if-workflow-activity-using/m-p/3125718#M1164687</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hello people,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I am exploring ServiceNow Rest API and I have a doubt which I could not answer alone.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Given that I have an activity which the activity definition type is an IF: How can I retrieve information like the conditions of the IF activity (not the conditions related to transitions, the condiions related to the IF activity definition), whether the advanced flag is enabled, and the script (if there is one) of the IF activity?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-11 203824.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/407268i391780F6979B74D5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-12-11 203824.png" alt="Screenshot 2024-12-11 203824.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Dec 2024 00:20:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-retrieve-the-properties-of-an-if-workflow-activity-using/m-p/3125718#M1164687</guid>
      <dc:creator>leviermonai</dc:creator>
      <dc:date>2024-12-12T00:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the properties of an IF workflow activity using ServiceNow API?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-retrieve-the-properties-of-an-if-workflow-activity-using/m-p/3125974#M1164742</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/817949"&gt;@leviermonai&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get it from "wf_activity" table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glide "wg_activity" table with a sys_id of the workflow (Published), reteive conditions and script values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you need help in scripting this logic.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ex:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HemanthM1_1-1733990904132.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/407325iE67E9FFB50664592/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HemanthM1_1-1733990904132.png" alt="HemanthM1_1-1733990904132.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 lia-image-align-inline" image-alt="HemanthM1_0-1733990866583.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/407324i18663EF134421ECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HemanthM1_0-1733990866583.png" alt="HemanthM1_0-1733990866583.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 08:10:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-retrieve-the-properties-of-an-if-workflow-activity-using/m-p/3125974#M1164742</guid>
      <dc:creator>Hemanth M</dc:creator>
      <dc:date>2024-12-12T08:10:40Z</dc:date>
    </item>
  </channel>
</rss>

