There is a famous example that returns the members of the group, made a code based on it, it all worked. However, when I tried to extend the code in order to return more than one array field, but several - it turned out complete nonsense.
Here is the code:
var members = API.groups.getMembers({"fields":"sex,bdate","group_id": "30666517", "v": "5.27", "sort": "id_asc", "count": "200", "offset": 0}).items; var offset = 20; while (offset < 200 && (offset + 0) < 2000) { members = members + "," + API.groups.getMembers({"fields":"sex,bdate","group_id": "30666517", "v": "5.27", "sort": "id_asc", "count": "20", "offset": (0 + offset)}).items; offset = offset + 20; } return members; Here comes such nonsense:
{"response":Array,Array,Array,Array,Array,...} An attempt to insert a loop on the server generated an error exceeding the number allowed for execution of the code. VK API execute
JSON is also not understood. Somehow you can solve this problem in order to return the required data in a digestible format? Especially if the list of fields will be expanded to 10-20.