<?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: Custom action in script throwing error in flow designer in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899237#M1105072</link>
    <description>&lt;P&gt;Like I want to access the variables from a variable set, in that case how can I add the input&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 13:59:38 GMT</pubDate>
    <dc:creator>SHALIKAS</dc:creator>
    <dc:date>2024-04-16T13:59:38Z</dc:date>
    <item>
      <title>Custom action in script throwing error in flow designer</title>
      <link>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899134#M1105047</link>
      <description>&lt;P&gt;I created a custom action in flow designer to execute the following script -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SHALIKAS_0-1713272103635.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/348155i224489430EB65C73/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/348155i224489430EB65C73/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/348155i224489430EB65C73/image-dimensions/800x293?v=v2 2.0x, /community/image/serverpage/image-id/348155i224489430EB65C73/image-dimensions/1200x440?v=v2 3.0x" role="button" title="SHALIKAS_0-1713272103635.png" alt="SHALIKAS_0-1713272103635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it is showing error as fd_data not defined. Here coned_variable_set is the name of the workflow&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 12:55:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899134#M1105047</guid>
      <dc:creator>SHALIKAS</dc:creator>
      <dc:date>2024-04-16T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom action in script throwing error in flow designer</title>
      <link>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899232#M1105070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Flow Action does not have access to the fd_data object directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead you will have to pass this object via the "inputs" of the Flow Action, so in your flow action, create an input as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CrisP_0-1713275728617.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/348179iA5FC3087C39DCE9A/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/348179iA5FC3087C39DCE9A/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/348179iA5FC3087C39DCE9A/image-dimensions/800x363?v=v2 2.0x, /community/image/serverpage/image-id/348179iA5FC3087C39DCE9A/image-dimensions/1200x544?v=v2 3.0x" role="button" title="CrisP_0-1713275728617.png" alt="CrisP_0-1713275728617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then in your Flow Action script you can access the input like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CrisP_1-1713275772946.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/348182iF9FE158383A3D0DB/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/348182iF9FE158383A3D0DB/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/348182iF9FE158383A3D0DB/image-dimensions/800x363?v=v2 2.0x, /community/image/serverpage/image-id/348182iF9FE158383A3D0DB/image-dimensions/1200x544?v=v2 3.0x" role="button" title="CrisP_1-1713275772946.png" alt="CrisP_1-1713275772946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, to actually pass the data to the input, go back to your Flow, from which you are calling your action, and pass the fd_data object using the picker:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CrisP_2-1713275816939.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/348183iC095D35E3683B87B/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/348183iC095D35E3683B87B/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/348183iC095D35E3683B87B/image-dimensions/800x363?v=v2 2.0x, /community/image/serverpage/image-id/348183iC095D35E3683B87B/image-dimensions/1200x544?v=v2 3.0x" role="button" title="CrisP_2-1713275816939.png" alt="CrisP_2-1713275816939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 13:57:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899232#M1105070</guid>
      <dc:creator>Cris P</dc:creator>
      <dc:date>2024-04-16T13:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom action in script throwing error in flow designer</title>
      <link>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899237#M1105072</link>
      <description>&lt;P&gt;Like I want to access the variables from a variable set, in that case how can I add the input&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 13:59:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/custom-action-in-script-throwing-error-in-flow-designer/m-p/2899237#M1105072</guid>
      <dc:creator>SHALIKAS</dc:creator>
      <dc:date>2024-04-16T13:59:38Z</dc:date>
    </item>
  </channel>
</rss>

