<?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: using formulas in HTTP Post body in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/11722#M4500</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9237"&gt;@dstein61&lt;/a&gt;&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/3769"&gt;@mppowe&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;One solution I would suggest is, instead of using an additional variable (CDM) or directly applying formulas in the HTTP step request body, you can select &lt;STRONG&gt;JSON Request Body&lt;/STRONG&gt; in the HTTP step rather than &lt;STRONG&gt;Raw JSON Request Body&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;When you choose &lt;STRONG&gt;JSON Request Body&lt;/STRONG&gt; as the Request Content Type, you can define the schema based on your request payload. This allows you to easily map data pills from previous steps without writing formulas manually.&lt;/P&gt;&lt;P&gt;For your reference, I am attaching an image. With this approach, there is no need for any additional steps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-02-03 144220.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2535i27B3EB332B3CB401/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-02-03 144220.png" alt="Screenshot 2026-02-03 144220.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 09:22:57 GMT</pubDate>
    <dc:creator>rajeshjanapati</dc:creator>
    <dc:date>2026-02-03T09:22:57Z</dc:date>
    <item>
      <title>using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4531#M2013</link>
      <description>&lt;P&gt;Hi, I'm trying to build my first HTTP connector recipe and I'm running into an issue when I try to use formulas in the request body of a Post call. The request content type is set to json and everything works fine when the body is set to "text". I can add data pills to dynamically set json content and the Post call succeeds and receives the expected response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to use formulas to format some of the data pill content (like .downcase).&amp;nbsp; However, as soon as I switch the Request body window from "text" to "formula", the recipe fails with a 415 error (&lt;SPAN&gt;Unsupported Media Type). At this point, I haven't used any formulas, I've only switched the Request body from "text" to "formula".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In comparing the input json that works (screenshot 1) to the json that fails (screenshot 2), I noticed that the body of json sent as "text" is surrounded by quotation marks, while the body sent as "formula" is not. This doesn't seem to be anything that I can control.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="succeeds.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/422iDA5033B4D600E92B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="succeeds.png" alt="succeeds.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fails.png" style="width: 253px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/423i8BB22F6DB9D80250/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="fails.png" alt="fails.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone come across this before? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 20:37:50 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4531#M2013</guid>
      <dc:creator>dstein61</dc:creator>
      <dc:date>2023-05-30T20:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4532#M2014</link>
      <description>&lt;P&gt;Can you send a screenshot of the input/body on the HTTP action? I'd like to see how your formula is written.&lt;/P&gt;&lt;P&gt;Edit: I remember running into this a while ago. I found the simplest way around it was to store the data transformations in a variable before the HTTP, and then insert the variable data pills directly into the text payload. This avoids having to clutter your payload with a lot of inline transformation and ultimately&amp;nbsp;&lt;SPAN&gt;avoids this problem entirely : )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That said, I'm still curious to figure out the root of the issue!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 00:25:58 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4532#M2014</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-05-31T00:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4537#M2016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;,&amp;nbsp;thanks for the reply. What your saying about storing the data transformations in variables makes sense. I'll give that a shot.&lt;/P&gt;&lt;P&gt;Here's screenshot of my formulas. This show all the formulas that I'd like to use, but I still get the 415 error even when "name" is the only field with a formula and the rest are replaced with hardcoded values. I agree that it would be great to get to the root of the issue!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formulas.png" style="width: 559px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/424i573D4DBFEB53CB4C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="formulas.png" alt="formulas.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:38:08 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4537#M2016</guid>
      <dc:creator>dstein61</dc:creator>
      <dc:date>2023-05-31T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4538#M2017</link>
      <description>&lt;P&gt;In formula mode you have to quote your text.&amp;nbsp; In your example, I think you'd have to wrap the whole thing in single-quotes, either that or use double-quotes but then use single-quotes for the key-value pairs.&amp;nbsp; I think you'd also have to close the text and add the variables outside the text, like in programming.&amp;nbsp; That's where I think it gets really confusing/ugly, and which is why I (like Gary) tend to do that stuff outside of the body.&amp;nbsp; For example, I think it would look something like...&lt;/P&gt;&lt;P&gt;"{ 'name':'" + &amp;lt;FullName-DataPill&amp;gt;.titleize + ",&lt;/P&gt;&lt;P&gt;'login':'" + &amp;lt;FirstName-DataPill&amp;gt;.downcase + "." + &amp;lt;LastName-DataPill&amp;gt;.downcase + ",&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;etc etc.&amp;nbsp; You could play with it using just one field at a time to see if you got the syntax right.&amp;nbsp; But troubleshooting is certainly easier using variables beforehand.&amp;nbsp; BUT, it's more Tasks!&amp;nbsp; So then there's that.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:58:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/4538#M2017</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2023-05-31T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/11717#M4497</link>
      <description>&lt;P&gt;Do you think that &lt;A href="https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-quot-415-unsupported-media-quot-error/m-p/11710#M4495" target="_self"&gt;this&lt;/A&gt; 415 error on a SOAP connector is similar to this HTTP problem from 2023? I have some fields with a formula but I could bypass them with if loops if you think that formulas are the cause.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 18:55:51 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/11717#M4497</guid>
      <dc:creator>rpatrick_</dc:creator>
      <dc:date>2026-02-02T18:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: using formulas in HTTP Post body</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/11722#M4500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9237"&gt;@dstein61&lt;/a&gt;&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/3769"&gt;@mppowe&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;One solution I would suggest is, instead of using an additional variable (CDM) or directly applying formulas in the HTTP step request body, you can select &lt;STRONG&gt;JSON Request Body&lt;/STRONG&gt; in the HTTP step rather than &lt;STRONG&gt;Raw JSON Request Body&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;When you choose &lt;STRONG&gt;JSON Request Body&lt;/STRONG&gt; as the Request Content Type, you can define the schema based on your request payload. This allows you to easily map data pills from previous steps without writing formulas manually.&lt;/P&gt;&lt;P&gt;For your reference, I am attaching an image. With this approach, there is no need for any additional steps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-02-03 144220.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2535i27B3EB332B3CB401/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-02-03 144220.png" alt="Screenshot 2026-02-03 144220.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 09:22:57 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-formulas-in-http-post-body/m-p/11722#M4500</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2026-02-03T09:22:57Z</dc:date>
    </item>
  </channel>
</rss>

