{"id":1023,"date":"2022-02-08T19:58:29","date_gmt":"2022-02-08T19:58:29","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=1023"},"modified":"2022-08-10T16:38:04","modified_gmt":"2022-08-10T16:38:04","slug":"set-service-result","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/set-service-result\/","title":{"rendered":"Set Service Result"},"content":{"rendered":"<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p><a name=\"abstract\"><\/a>Requires deployed extension&nbsp;<a href=\"https:\/\/integroscrm.com\/lb-components\/\" rel=\"noreferrer noopener\" target=\"_blank\">LB Services<\/a>&nbsp;into Sugar Environment.<\/p>\n<p>LB Services is used to call logic configured with a flowchart:<\/p>\n<ul>\n<li>from another flowchart<\/li>\n<li>from SugarBPM<\/li>\n<li>from an external system through Sugar REST API<\/li>\n<li>from custom code (e.g. buttons)<\/li>\n<\/ul>\n<\/div>\n\n\n<p>Sets value into <em><span style=\"color:#6888c9;\">result <\/span><\/em>port. Value in result can be used in another flowchart, which calls the Service with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/call-service\/\">Call Service<\/a>. E.g. if there is a flowchart that counts Tasks for accounts, the result is the number of Tasks. This result can be used in other flowcharts to build conditions, configure messages, etc.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">service<\/span> &#8211; input service which result is needed to set. Commonly it is output from <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/on-service-call\/\">On Service Call<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#6888c9;\">result <\/span> &#8211; input value that is needed to be used in another flowchart, which calls this one.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: no<\/li><\/ul>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">service<\/span>&nbsp;&#8211; the service with the updated result.<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-138-13cf501319984de68858b76e04f8c36b.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-138-13cf501319984de68858b76e04f8c36b-1024x152.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_1023' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-1023\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-67c995e121ae0' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-67c995e121ae0'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='1023' \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-67c995e121ae0\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"1023\" \n                               id=\"yasr-stats-dashicon-67c995e121ae0\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-67c995e121ae0\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-67c995e121ae0\">0<\/span>  Average: <span id=\"yasr-vv-average-container-67c995e121ae0\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-67c995e121ae0' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-67c995e121ae0' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Requires deployed extension&nbsp;LB Services&nbsp;into Sugar Environment. LB Services is used to call logic configured with a flowchart: from another flowchart from SugarBPM from an external system through Sugar REST API from custom code (e.g. buttons) Sets value into result port. Value in result can be used in another flowchart, which calls the Service with Call &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-service-result\/\"> <span class=\"screen-reader-text\">Set Service Result<\/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-1023","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\/1023","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=1023"}],"version-history":[{"count":4,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1023\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1023\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}