<?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: Serving files with workato? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/serving-files-with-workato/m-p/2665#M1215</link>
    <description>&lt;P&gt;You can return XML back to the parent recipe I believe you just have to format it that way. Transform it from JSON to XML before you hand it back to the caller. Something like .to_xml may work. You may also have to choose a text response format instead of a JSON response format in the callabe recipe response schema config. &lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 06:31:54 GMT</pubDate>
    <dc:creator>jblanchett</dc:creator>
    <dc:date>2022-04-06T06:31:54Z</dc:date>
    <item>
      <title>Serving files with workato?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/serving-files-with-workato/m-p/2664#M1214</link>
      <description>&lt;P&gt;Hi everyone, I'm trying to serve an xml file with a webhook. In simple terms, I'm trying to do this: "If you visit this webhook url, you should be served XML data". I'm starting to feel like it's not possible (at least using a webhook), but I'll lay out what I'm trying to do, and please let me know if you have any advice:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. Webhook trigger on parent recipe&lt;/P&gt;&lt;P&gt;2. Call callable function&lt;/P&gt;&lt;P&gt;3. (on callable function) Using connection to Postgres, select rows using custom SQL&lt;/P&gt;&lt;P&gt;2. (on callable function)Take all of those rows in a "For Each (batch)" and create message using a template. The message I'm creating is a template to produce an XML file. Return "XML" back to parent recipe&lt;/P&gt;&lt;P&gt;3.  &lt;STRONG&gt;Here's where I'm having issues&lt;/STRONG&gt;. I can log the result using "Logs by Workato", and get some JSON back (&lt;A href="https://community.workato.com/links?lid=O5t-_Gu54OIMh0FqC4GZrA&amp;amp;token=%2A%7CTOKEN%7C%2A&amp;amp;url=https%3A%2F%2Fpastebin.com%2FhneigZmq" target="_blank" rel="noopener noreerrer"&gt;example&lt;/A&gt;), but ideally I'd like to serve the actual XML (extracted from the object), as soon as a user hits the webhook. Do I need to use the API functionality instead? Thanks in advance for any advice.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 05:44:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/serving-files-with-workato/m-p/2664#M1214</guid>
      <dc:creator>matt-outen</dc:creator>
      <dc:date>2022-04-06T05:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Serving files with workato?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/serving-files-with-workato/m-p/2665#M1215</link>
      <description>&lt;P&gt;You can return XML back to the parent recipe I believe you just have to format it that way. Transform it from JSON to XML before you hand it back to the caller. Something like .to_xml may work. You may also have to choose a text response format instead of a JSON response format in the callabe recipe response schema config. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:31:54 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/serving-files-with-workato/m-p/2665#M1215</guid>
      <dc:creator>jblanchett</dc:creator>
      <dc:date>2022-04-06T06:31:54Z</dc:date>
    </item>
  </channel>
</rss>

