

{"id":1844,"date":"2023-05-03T13:19:11","date_gmt":"2023-05-03T17:19:11","guid":{"rendered":"https:\/\/www.alphinat.com\/en\/?post_type=docs&#038;p=1844"},"modified":"2023-07-19T14:50:27","modified_gmt":"2023-07-19T18:50:27","password":"","slug":"how-to-create-a-theme","status":"publish","type":"docs","link":"https:\/\/www.alphinat.com\/en\/support\/how-to-create-a-theme\/","title":{"rendered":"How to add a service call?"},"content":{"rendered":"\n<p>To use a web service or an extension function in a Smartlet, the service should be defined ahead of time in the connections section. Before making a call to a service at the Smartlet level, be sure you have created the fields that will serve as inputs and outputs if you choose not to auto-create the fields.<\/p>\n\n\n\n<p><strong>To add a service call:<\/strong><\/p>\n\n\n\n<ol><li>Click the <strong>Services<\/strong> tab from any of the Smartlet edition interfaces: <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"757\" height=\"224\" src=\"https:\/\/www.alphinat.com\/en\/wp-content\/uploads\/sites\/8\/2023\/05\/image-17.png\" alt=\"\" class=\"wp-image-2046\" srcset=\"https:\/\/www.alphinat.com\/en\/wp-content\/uploads\/sites\/8\/2023\/05\/image-17.png 757w, https:\/\/www.alphinat.com\/en\/wp-content\/uploads\/sites\/8\/2023\/05\/image-17-300x89.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<ol start=\"2\"><li>Click the<strong> Add <\/strong>a service call button.<\/li><li>Select the <strong>Connection<\/strong> to use for the service call.<\/li><li>Select the <strong>Operation<\/strong> to use for the call.<\/li><li>Enter the <strong>Service call name<\/strong>.<\/li><li>Optionally enter a <strong>Description<\/strong> of the service call.<\/li><li>Optionally check the <strong>Auto-create fields from service definition<\/strong> box.<\/li><li>Optionally check the<strong> Auto-map fields <\/strong>box.<\/li><li>Optionally check the <strong>Cache service output<\/strong> box (available starting with V8.0.1).<\/li><li>If you choose to auto-map the fields, optionally check the <strong>Overwrite existing mappings<\/strong> box to replace existing mappings with the new ones.<\/li><li>Click the <strong>Create<\/strong> button.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To use a web service or an extension function in a Smartlet, the service should be defined ahead of time in the connections section. Before making a call to a service at the Smartlet level, be sure you have created the fields that will serve as inputs and outputs if you choose not to auto-create [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"doc_category":[13],"doc_tag":[],"year_month":"2026-04","word_count":162,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"darlyn","author_nicename":"darlyn-esmeralda","author_url":"https:\/\/www.alphinat.com\/en\/author\/darlyn-esmeralda\/"},"doc_category_info":[{"term_name":"Get Started","term_url":"https:\/\/www.alphinat.com\/en\/support-category\/get-started\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/docs\/1844"}],"collection":[{"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/comments?post=1844"}],"version-history":[{"count":5,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/docs\/1844\/revisions"}],"predecessor-version":[{"id":2296,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/docs\/1844\/revisions\/2296"}],"wp:attachment":[{"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/media?parent=1844"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/doc_category?post=1844"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.alphinat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}