{"id":896,"date":"2022-01-18T16:50:46","date_gmt":"2022-01-18T16:50:46","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=896"},"modified":"2022-08-03T15:31:34","modified_gmt":"2022-08-03T15:31:34","slug":"save-entity","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/save-entity\/","title":{"rendered":"Save Entity"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Saves the given record. Use to save created entity or to save updates made to the record, in the same way as users hit &#8216;Save&#8217; button in Sugar interface after updating field values or new record creating. Often follows by <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-entity-attributes\/\">Set Entity Attributes<\/a>.<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Do not use Save Entity:<\/p>\n<ul>\n<li>in Before Save logic to save entity that is set in <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/on-data-change\/\">On Data Change<\/a>. Sugar saves the record anyway.<\/li>\n<li>right away after <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/link-entities\/\">Link Entities<\/a><\/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>Be aware that <span style=\"color:#ec8f45;\">Save Entity<\/span> executes all flowcharts that trigger on this entity, except the current one.<br>If there are several <span style=\"color:#ec8f45;\">Save Entity<\/span> actions of the same record in the flowchart, all other flowcharts for this record will be called only once (when Save Entity firstly occurs in the flow).<\/p>\n<\/div>\n\n\n<p><strong>inputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ef6950;\">entity<\/span>&#8211; input record to save<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><strong>outputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ef6950;\">entity<\/span> &#8211; updated record<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Be consistent with entities link. If a record is once saved in the flowchart, use the output port entity from Save Entity for further modifications of this record within the same flowchart.<\/p>\n<\/div>\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-84-e5c6038614d04e2c9193e8ebabce6fef.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-84-e5c6038614d04e2c9193e8ebabce6fef-1024x295.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_896' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-896\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-e5c076799b9f9' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-e5c076799b9f9'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='896' \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-e5c076799b9f9\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"896\" \n                               id=\"yasr-stats-dashicon-e5c076799b9f9\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-e5c076799b9f9\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-e5c076799b9f9\">0<\/span>  Average: <span id=\"yasr-vv-average-container-e5c076799b9f9\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-e5c076799b9f9' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-e5c076799b9f9' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Saves the given record. Use to save created entity or to save updates made to the record, in the same way as users hit &#8216;Save&#8217; button in Sugar interface after updating field values or new record creating. Often follows by Set Entity Attributes. Do not use Save Entity: in Before Save logic to save entity &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/save-entity\/\"> <span class=\"screen-reader-text\">Save Entity<\/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-896","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\/896","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=896"}],"version-history":[{"count":4,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/896\/revisions"}],"predecessor-version":[{"id":2058,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/896\/revisions\/2058"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=896"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}