{"id":341,"date":"2021-12-17T14:18:21","date_gmt":"2021-12-17T14:18:21","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=341"},"modified":"2022-06-10T09:53:12","modified_gmt":"2022-06-10T09:53:12","slug":"set-array-elements-by-path","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/set-array-elements-by-path\/","title":{"rendered":"Set Array Elements By Path"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Assigns new values to one or more elements of the array by path.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#6888c9;\">array<\/span>&nbsp;&#8211;&nbsp;input array where a new value must to be set<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><em><span style=\"color:#6888c9;\">input area<\/span><\/em>&nbsp;&#8211; link the value for the element and input a path to the element.&nbsp;A path consists of the names of elements and is separated by dots.<\/p>\n\n\n\n<p>If an element name contains dots, it must be enclosed in double quotes, for example &#8220;attr.with.periods.&#8221;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\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\/set-array-elements-by-path-1.png\" alt=\"\" class=\"wp-image-340\" width=\"707\" height=\"406\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/set-array-elements-by-path-1.png 960w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/set-array-elements-by-path-1-300x172.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/set-array-elements-by-path-1-768x441.png 768w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p><strong>outputs:<\/strong><br><span style=\"color:#6888c9;\">array<\/span>&nbsp;&#8211; array with the new value(s) for the element(s)<\/p>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_341' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-341\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-b1e85a30696af' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-b1e85a30696af'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='341' \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-b1e85a30696af\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"341\" \n                               id=\"yasr-stats-dashicon-b1e85a30696af\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-b1e85a30696af\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-b1e85a30696af\">0<\/span>  Average: <span id=\"yasr-vv-average-container-b1e85a30696af\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-b1e85a30696af' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-b1e85a30696af' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Assigns new values to one or more elements of the array by path. inputs: array&nbsp;&#8211;&nbsp;input array where a new value must to be set Required: yes input area&nbsp;&#8211; link the value for the element and input a path to the element.&nbsp;A path consists of the names of elements and is separated by dots. If an &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-array-elements-by-path\/\"> <span class=\"screen-reader-text\">Set Array Elements By Path<\/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-341","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\/341","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=341"}],"version-history":[{"count":6,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/341\/revisions"}],"predecessor-version":[{"id":1673,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/341\/revisions\/1673"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}