<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Returning a result from a callable recipe in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2036#M823</link>
    <description>&lt;P&gt;Thanks &lt;A href="https://systematic.workato.com/workato-migration/users/2467732"&gt;Jacob Shmerkovich&lt;/A&gt; - that was my first thought, but the "Return" action doesn't give me the option to switch between text and formula &lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 18:55:09 GMT</pubDate>
    <dc:creator>edward-abrahams</dc:creator>
    <dc:date>2021-12-23T18:55:09Z</dc:date>
    <item>
      <title>Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2034#M821</link>
      <description>&lt;P&gt;Hey all, wondering if I could get some advice on using callable recipes. I've set one up where my result schema is a single object. I then have a Python script that also outputs an object (also defined in the Workato schema.) Problem is, when I try and set the result, I can't pick anything. See here:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I can't quite get my head around why it won't accept it seeing as it's all the same type. Any ideas?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Edit: I've found if I change the input schema to text, it will let me pick the data, seems to be the type causing the problem &lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:41:17 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2034#M821</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T18:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2035#M822</link>
      <description>&lt;P&gt;Hi, you need to change it from Text to Formula.&lt;/P&gt;&lt;P&gt;Then you'll be able to map "Data" to "Data".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:50:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2035#M822</guid>
      <dc:creator>kobi-sh</dc:creator>
      <dc:date>2021-12-23T18:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2036#M823</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://systematic.workato.com/workato-migration/users/2467732"&gt;Jacob Shmerkovich&lt;/A&gt; - that was my first thought, but the "Return" action doesn't give me the option to switch between text and formula &lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:55:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2036#M823</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T18:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2037#M824</link>
      <description>&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward, just select the "Data" on the left side and drag it into "Data" to the right. You can drag the selection although there is no datapill shown!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:56:48 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2037#M824</guid>
      <dc:creator>kkrivonos</dc:creator>
      <dc:date>2021-12-23T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2038#M825</link>
      <description>&lt;DIV class="WordSection1"&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt;Can you share the return snippet in the Python code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:38:03 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2038#M825</guid>
      <dc:creator>roland-daane</dc:creator>
      <dc:date>2021-12-23T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2039#M826</link>
      <description>&lt;P&gt;This doesn't work for me, I can drag it like you've shown, but it doesn't do anything&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:40:14 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2039#M826</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2040#M827</link>
      <description>&lt;P&gt;Hi Roland, sure: &lt;/P&gt;&lt;P&gt;return {"data": {input["inspection_doc"]["audit_id"]: question_ref}}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;question_ref is an array, input["inspection_doc"]["audit_id"] is a string so the output is soemthing like:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{"data": { "audit_123": []}}&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:41:39 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2040#M827</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T19:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2041#M828</link>
      <description>&lt;DIV class="WordSection1"&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt;Hi,&lt;BR /&gt;I thought I’d just play around a bit, because this is definitely something I’ll be using…..&lt;BR /&gt;but just a little python script won’t run….and the 2 examlpes in the Workato help also don’t work….&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Dec 2021 21:56:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2041#M828</guid>
      <dc:creator>roland-daane</dc:creator>
      <dc:date>2021-12-23T21:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2042#M829</link>
      <description>&lt;P&gt;hi, would you share the recipe?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 22:10:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2042#M829</guid>
      <dc:creator>james-ng</dc:creator>
      <dc:date>2021-12-23T22:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2043#M830</link>
      <description>&lt;P&gt;Hi James, sure you should be able to access it here: https://app.workato.com/recipes/1959329?st=e6daac&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 22:26:21 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2043#M830</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T22:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2044#M831</link>
      <description>&lt;P&gt;It uses a custom connector as we're currently rolling out Workato so not sure if you'll be able to access it properly. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 22:26:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2044#M831</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T22:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2045#M832</link>
      <description>&lt;P&gt;Thanks for the link. I had a look and it's because your Python script isn't taking any input. Your script needs to be in a function called main that has input as its parameter. If you change your script to this:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;def main(input):&lt;/P&gt;&lt;P&gt;    return {"parmRerurn": "Hello World!"}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It'll work fine - even though you haven't defined any inputs, it still passes it to the main function causing the error. Anything you want to get out, needs to be passed to the returned dictionary, named with whatever is in your schema. The inputs go into the input dict so you could reference those if needed. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 22:37:48 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2045#M832</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2021-12-23T22:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2046#M833</link>
      <description>&lt;P&gt;&lt;A href="https://systematic.workato.com/workato-migration/users/2571645"&gt;Edward Abrahamsen-Mills&lt;/A&gt; I'm following the progress of this thread, so if you vaildate the fix, could you please confirm it here?  Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 21:34:06 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2046#M833</guid>
      <dc:creator>tara1</dc:creator>
      <dc:date>2021-12-28T21:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a result from a callable recipe</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2047#M834</link>
      <description>&lt;P&gt;Hi Tara, I am yet to resolve this issue however I'll definitely share the solution if I find one! &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 22:56:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/returning-a-result-from-a-callable-recipe/m-p/2047#M834</guid>
      <dc:creator>edward-abrahams</dc:creator>
      <dc:date>2022-01-04T22:56:38Z</dc:date>
    </item>
  </channel>
</rss>

