<?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>topic Re: Evaluate Node - JavaScript error in Webex Connect</title>
    <link>https://community.cisco.com/t5/webex-connect/evaluate-node-javascript-error/m-p/4899039#M178</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/252126"&gt;@Gerry O'Rourke&lt;/a&gt;&amp;nbsp;- Arrow function is not supported by the JavaScript engine used for Webex Connect Evaluate node. You will need to define a function on your own to do the required data transformation/structuring in this case.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 22:26:52 GMT</pubDate>
    <dc:creator>Connect - Tanuj</dc:creator>
    <dc:date>2023-08-04T22:26:52Z</dc:date>
    <item>
      <title>Evaluate Node - JavaScript error</title>
      <link>https://community.cisco.com/t5/webex-connect/evaluate-node-javascript-error/m-p/4894761#M175</link>
      <description>&lt;P&gt;Anyone have any ideas why this gives an error in an webex connect &lt;STRONG&gt;evaluate&lt;/STRONG&gt; node?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;const originalArray = ["apple", "orange", "banana"];
const formattedArray = originalArray.map(fruit =&amp;gt; ({ fruit }));
const myJson = JSON.stringify(formattedArray);
1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It fails on line 2 - &lt;EM&gt;&lt;STRONG&gt;syntax error (&amp;lt;cmd&amp;gt;#2)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;But the JavaScript looks OK? and the variable &lt;STRONG&gt;myJson &lt;/STRONG&gt;should evaluate to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[{"fruit":"apple"},{"fruit":"orange"},{"fruit":"banana"}]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Gerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 09:04:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-connect/evaluate-node-javascript-error/m-p/4894761#M175</guid>
      <dc:creator>Gerry O'Rourke</dc:creator>
      <dc:date>2023-07-28T09:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Node - JavaScript error</title>
      <link>https://community.cisco.com/t5/webex-connect/evaluate-node-javascript-error/m-p/4899039#M178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/252126"&gt;@Gerry O'Rourke&lt;/a&gt;&amp;nbsp;- Arrow function is not supported by the JavaScript engine used for Webex Connect Evaluate node. You will need to define a function on your own to do the required data transformation/structuring in this case.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 22:26:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-connect/evaluate-node-javascript-error/m-p/4899039#M178</guid>
      <dc:creator>Connect - Tanuj</dc:creator>
      <dc:date>2023-08-04T22:26:52Z</dc:date>
    </item>
  </channel>
</rss>

