{"id":351,"date":"2021-12-17T15:35:26","date_gmt":"2021-12-17T15:35:26","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=351"},"modified":"2022-06-10T09:53:44","modified_gmt":"2022-06-10T09:53:44","slug":"get-collection-from-array","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-collection-from-array\/","title":{"rendered":"Get Collection From Array"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Transforms Array to Collection. Enables Collection operators to work with converted to collection array, but keep in mind that some of the Collection operators may work with the Array as well (like For Each Element).<\/p>\n\n\n<div style=\"background-color:#ddeaff; border-left:6px solid #0072b3; padding:12px\">\nN.B. During the transformation from Array to Collection all keys will be changed to the index number of the element. Values remain unchanged.\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#6888c9;\">array<\/span>&nbsp;&#8211; link with array to be transformed to collection<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Requires: yes<\/li><\/ul>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#6888c9;\">collection<\/span>&nbsp;&#8211; collection created from the array&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-collection-from-array-1-1024x324.png\" alt=\"\" class=\"wp-image-350\" width=\"850\" height=\"269\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-collection-from-array-1-1024x324.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-collection-from-array-1-300x95.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-collection-from-array-1-768x243.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-collection-from-array-1.png 1465w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_351' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-351\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-ea096601012a7' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-ea096601012a7'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='351' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-ea096601012a7\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"351\" \n                               id=\"yasr-stats-dashicon-ea096601012a7\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-ea096601012a7\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-ea096601012a7\">0<\/span>  Average: <span id=\"yasr-vv-average-container-ea096601012a7\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-ea096601012a7' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-ea096601012a7' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Transforms Array to Collection. Enables Collection operators to work with converted to collection array, but keep in mind that some of the Collection operators may work with the Array as well (like For Each Element). N.B. During the transformation from Array to Collection all keys will be changed to the index number of the element. &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-collection-from-array\/\"> <span class=\"screen-reader-text\">Get Collection From Array<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-351","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":16,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/351\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/351\/revisions\/1676"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}