{"id":748,"date":"2022-01-12T15:44:18","date_gmt":"2022-01-12T15:44:18","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=748"},"modified":"2022-08-03T15:21:36","modified_gmt":"2022-08-03T15:21:36","slug":"attach-decorator","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/attach-decorator\/","title":{"rendered":"Attach Decorator"},"content":{"rendered":"<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p><a name=\"abstract\"><\/a>Requires deployed&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/integroscrm.com\/timeline-viewer\/\" target=\"_blank\">TimeLine Viewer<\/a>&nbsp;add-on into Sugar<\/p>\n<\/div>\n\n\n<p>Allows to output a value in a Context of Timeline Entry as a link to direct file download. Usually can be used to output links for download email attachments.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p>select from the link module where the file is stored (usually Notes)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">id<\/span> &#8211; provide an ID of the record with a file<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">field<\/span> &#8211; select the field where the attachment is stored (&#8220;Attachnemnt (filename)&#8221; for Notes)<\/p>\n\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:#ec8f45;\">decorator<\/span> &#8211; use as input in &#8216;decorator&#8217; input port for <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/apply-field-decorator\/\">Apply Field Decorator<\/a> to make a field in a Timeline Context as a download link.<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-74-104ebdd60bc844458c86ef7b8498c0f6.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-74-104ebdd60bc844458c86ef7b8498c0f6-1024x255.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\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\/img-74-f9f190e2755d49e38ab611348dccaec3.png\" alt=\"\" class=\"wp-image-530\" width=\"641\" height=\"206\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-74-f9f190e2755d49e38ab611348dccaec3.png 800w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-74-f9f190e2755d49e38ab611348dccaec3-300x96.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-74-f9f190e2755d49e38ab611348dccaec3-768x247.png 768w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_748' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-748\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-6e0e6c91fab16' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-6e0e6c91fab16'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='748' \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-6e0e6c91fab16\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"748\" \n                               id=\"yasr-stats-dashicon-6e0e6c91fab16\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-6e0e6c91fab16\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-6e0e6c91fab16\">0<\/span>  Average: <span id=\"yasr-vv-average-container-6e0e6c91fab16\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-6e0e6c91fab16' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-6e0e6c91fab16' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Requires deployed&nbsp;TimeLine Viewer&nbsp;add-on into Sugar Allows to output a value in a Context of Timeline Entry as a link to direct file download. Usually can be used to output links for download email attachments. inputs: select from the link module where the file is stored (usually Notes) Required: yes id &#8211; provide an ID of &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/attach-decorator\/\"> <span class=\"screen-reader-text\">Attach Decorator<\/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-748","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\/748","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=748"}],"version-history":[{"count":6,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/748\/revisions"}],"predecessor-version":[{"id":2049,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/748\/revisions\/2049"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=748"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}