{"id":902,"date":"2022-01-19T14:55:24","date_gmt":"2022-01-19T14:55:24","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=902"},"modified":"2022-08-03T17:18:40","modified_gmt":"2022-08-03T17:18:40","slug":"set-entity-attributes","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/set-entity-attributes\/","title":{"rendered":"Set Entity Attributes"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Changes field values of a given record. Use it whenever a new record is created to set values for the fields or to update fields values for an existing record.<\/p>\n\n\n\n<p><strong>inputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ef6950;\">entity<\/span> &#8211; input&nbsp;the record, which fields values are to be set.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><em>in the following dropdown<\/em>&nbsp;select the field&nbsp;which value is needed to update or set.&nbsp;In a dropdown each field displays as its Label, following with its system name. If there is no label, only the system name is displayed.&nbsp;To select several fields click &#8216;+&#8217; in the operator. If the dropdown is empty, make sure that entity is input.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Consider the following:<\/p>\n<ul>\n<li>If a field has a default value set in Studio\/custom code and isn&#8217;t overwritten in Set Entity Attributes, then the field contains a default value.<\/li>\n<li>Date Created\/Modified will be set to a time when the flowchart was fired, so there is no sense to set them with <span style=\"color:#ec8f45;\">Set Entity Attributes<\/span><\/li>\n<li>Created by\/Modified will be set with a user who initiated flowchart execution, so there is no sense to set them with <span style=\"color:#ec8f45;\">Set Entity Attributes<\/span><\/li>\n<li>If there is formula for the field it is not possible to set values for this field with <span style=\"color:#ec8f45;\">Set Entity Attributes<\/span><\/li>\n<\/ul>\n<\/div>\n\n\n<p><\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Do not leave fields without a linkage with a value. If a field is left without value, its value will be erased.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-029dc8fc6c8248ad8b6c9d9ec7447e12-1024x400.png\" alt=\"\" class=\"wp-image-555\" width=\"630\" height=\"246\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-029dc8fc6c8248ad8b6c9d9ec7447e12-1024x400.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-029dc8fc6c8248ad8b6c9d9ec7447e12-300x117.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-029dc8fc6c8248ad8b6c9d9ec7447e12-768x300.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-029dc8fc6c8248ad8b6c9d9ec7447e12.png 1147w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/>\n<\/p>\n<\/div>\n\n\n<p><strong>outputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ef6950;\">entity<\/span> &#8211; record with modified fields. Commonly use this output as input to <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/save-entity\/\">Save Entity<\/a> to preserve made changes.<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-a278a9d61aad41efbe16dbdec7c092db.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-87-a278a9d61aad41efbe16dbdec7c092db-1024x545.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_902' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-902\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-e91efd646809a' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-e91efd646809a'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='902' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='60508256f2' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-e91efd646809a\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"902\" \n                               id=\"yasr-stats-dashicon-e91efd646809a\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-e91efd646809a\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-e91efd646809a\">0<\/span>  Average: <span id=\"yasr-vv-average-container-e91efd646809a\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-e91efd646809a' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-e91efd646809a' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Changes field values of a given record. Use it whenever a new record is created to set values for the fields or to update fields values for an existing record. inputs:&nbsp; entity &#8211; input&nbsp;the record, which fields values are to be set. Required: yes in the following dropdown&nbsp;select the field&nbsp;which value is needed to update &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-entity-attributes\/\"> <span class=\"screen-reader-text\">Set Entity Attributes<\/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-902","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\/902","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=902"}],"version-history":[{"count":5,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/902\/revisions"}],"predecessor-version":[{"id":2060,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/902\/revisions\/2060"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}