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