{"id":1168,"date":"2022-02-11T16:35:51","date_gmt":"2022-02-11T16:35:51","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=1168"},"modified":"2022-08-12T16:12:48","modified_gmt":"2022-08-12T16:12:48","slug":"get-variable","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-variable\/","title":{"rendered":"Get Variable"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Retrieves a value of the specified variable. The value must be set with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-variable\/\">Set Variable<\/a> prior to retrieving it.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#9ed267;\">name<\/span> &#8211; specify directly in the operator or link the name of the variable which value is needed.<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Variable names are case-sensitive.&nbsp;<em>Var<\/em>&nbsp;and&nbsp;<em>var<\/em>&nbsp;are two different variables.<\/p>\n<\/div>\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#6888c9;\">value<\/span> &#8211; the value of the specified variable.<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Note that the value for the variable can be of any data type. If there is an entity as a value, to use operators to process entity like <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-entity-attributes\/\">Get Entity Attributes<\/a> or <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/retrieve-related-entities\/\">Retrieve Related Entities<\/a>, use <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/cast-to-entity\/\">Cast To Entity<\/a> firstly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-3e62bc9c32494a2cae1ec5a7f593aa8a-1024x190.png\" alt=\"\" class=\"wp-image-1169\" width=\"928\" height=\"172\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-3e62bc9c32494a2cae1ec5a7f593aa8a-1024x190.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-3e62bc9c32494a2cae1ec5a7f593aa8a-300x56.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-3e62bc9c32494a2cae1ec5a7f593aa8a-768x143.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-3e62bc9c32494a2cae1ec5a7f593aa8a.png 1163w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/p>\n<\/div>\n\n\n<p><em>on the example below the piece of logic checks the content of the array &#8220;chat.groups&#8221; and collects in a variable the list of groups to be stored in MultiSelect Sugar Field:<\/em><\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-74d9c8612195450e8448f198278841ed.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-171-74d9c8612195450e8448f198278841ed-1024x468.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_1168' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-1168\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-040ae4d6f0ba9' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-040ae4d6f0ba9'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='1168' \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-040ae4d6f0ba9\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"1168\" \n                               id=\"yasr-stats-dashicon-040ae4d6f0ba9\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-040ae4d6f0ba9\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-040ae4d6f0ba9\">0<\/span>  Average: <span id=\"yasr-vv-average-container-040ae4d6f0ba9\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-040ae4d6f0ba9' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-040ae4d6f0ba9' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Retrieves a value of the specified variable. The value must be set with Set Variable prior to retrieving it. inputs: name &#8211; specify directly in the operator or link the name of the variable which value is needed. Variable names are case-sensitive.&nbsp;Var&nbsp;and&nbsp;var&nbsp;are two different variables. Required: yes outputs: value &#8211; the value of the specified &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-variable\/\"> <span class=\"screen-reader-text\">Get Variable<\/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-1168","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\/1168","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=1168"}],"version-history":[{"count":5,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1168\/revisions"}],"predecessor-version":[{"id":2156,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1168\/revisions\/2156"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}