<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged vararrayof</title>
<link>https://overflow.efficy.io/?qa=tag/vararrayof</link>
<description>Powered by Question2Answer</description>
<item>
<title>Efficy function varArrayOf is not working under Efficy 11.3.23950</title>
<link>https://overflow.efficy.io/?qa=6008/efficy-function-vararrayof-not-working-under-efficy-23950</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;At a customer we used the varArrayOf function to translate JavaScript array into Array of Variants : &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/serverjs#Library-varArrayOf&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/serverjs#Library-varArrayOf&quot;&gt;https://help.efficy.io/edn/serverjs#Library-varArrayOf&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;But it is seems that it is not working in Efficy 11.3.23950.0&lt;/p&gt;

&lt;p&gt;Here is the test I did to show that it is not working in a standard Efficy.&lt;br&gt;
I created a scheduleScript with this code, which is pretty straight forward : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
@import &quot;ecma&quot;;
*/
function main() {
var users = [1,2,3,4]
var userArr = varArrayOf(users);
Efficy.log('\r\nUsers:' + JSON.stringify(users) + '\r\nUsers Array Of: ' + JSON.stringify(userArr));
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And here is the result :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[2021/04/02 12:38:46.018] 
[2021/04/02 12:38:46.018] === Run Job ===
[2021/04/02 12:38:46.042] [Efficy113Std - 2] 
[2021/04/02 12:38:46.042] [Efficy113Std - 2] ========================================================================================
[2021/04/02 12:38:46.042] [Efficy113Std - 2] Task 2: Test usersInGroup
[2021/04/02 12:38:46.042] [Efficy113Std - 2] Log on Database Efficy113Std - User ADMIN113
[2021/04/02 12:38:46.084] [Efficy113Std - 2] Load Script File: C:\inetpub\wwwroot\11.3\customs\default\efficy\serverjs\testUsersInGroups.js
[2021/04/02 12:38:46.085] [Efficy113Std - 2] ----------------------------------------------------------------------------------------
[2021/04/02 12:38:46.086] [Efficy113Std - 2] 
Users:[1,2,3,4]
Users Array Of: undefined
[2021/04/02 12:38:46.086] [Efficy113Std - 2] ========================================================================================
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6008/efficy-function-vararrayof-not-working-under-efficy-23950</guid>
<pubDate>Fri, 02 Apr 2021 10:46:02 +0000</pubDate>
</item>
</channel>
</rss>