{"id":371,"date":"2021-12-17T15:50:31","date_gmt":"2021-12-17T15:50:31","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=371"},"modified":"2022-07-28T12:57:07","modified_gmt":"2022-07-28T12:57:07","slug":"get-array-elements-by-template","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-array-elements-by-template\/","title":{"rendered":"Get Array Elements By Template"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Returns elements by the provided path. Allows getting nested elements by providing wildcard * as a part of the path.<\/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 which elements value are needed<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">pathTemplate<\/span>&nbsp;&#8211; input path to the elements which values is needed in the output. The path consists of the names of elements and is separated by dots. Part of the path must be set with wildcard *, which means the operator will be trying to get to the nested elements by path by setting the path values (e.g. 0, 1, 2) instead of a wildcard.<\/p>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#6888c9;\">elements<\/span>&nbsp;&#8211;&nbsp;array of find elements values. Use this output as input into&nbsp;<a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/for-each-element\/\">For Each Element<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-array-elements-by-template-1.png\" alt=\"\" class=\"wp-image-370\" width=\"775\" height=\"355\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-array-elements-by-template-1.png 1009w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-array-elements-by-template-1-300x137.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/get-array-elements-by-template-1-768x352.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/figure>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_371' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-371\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-01069690ae0a1' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-01069690ae0a1'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='371' \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-01069690ae0a1\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"371\" \n                               id=\"yasr-stats-dashicon-01069690ae0a1\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-01069690ae0a1\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-01069690ae0a1\">0<\/span>  Average: <span id=\"yasr-vv-average-container-01069690ae0a1\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-01069690ae0a1' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-01069690ae0a1' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Returns elements by the provided path. Allows getting nested elements by providing wildcard * as a part of the path. inputs: array&nbsp;&#8211; link with array which elements value are needed Required: yes pathTemplate&nbsp;&#8211; input path to the elements which values is needed in the output. The path consists of the names of elements and is &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-array-elements-by-template\/\"> <span class=\"screen-reader-text\">Get Array Elements By Template<\/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-371","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\/371","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=371"}],"version-history":[{"count":8,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/371\/revisions"}],"predecessor-version":[{"id":1995,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/371\/revisions\/1995"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}