<?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: Escaped quotes turning into not-escaped quotes (HTTP to GraphQL) in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8963#M3694</link>
    <description>&lt;P&gt;On a successful API call to write the data to the second system without any replacing,&amp;nbsp; what's the issue? Is the second system displaying "\n" literally?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 21:08:13 GMT</pubDate>
    <dc:creator>gary1</dc:creator>
    <dc:date>2025-02-20T21:08:13Z</dc:date>
    <item>
      <title>Escaped quotes turning into not-escaped quotes and \n being turned into newline (HTTP to GraphQL)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8957#M3689</link>
      <description>&lt;P&gt;I'm building a pipeline that takes contents from one system (via an API call using the HTTP connector) which is then being used to create/update an object in a different system (via the GraphQL connector issuing a mutation). The content coming from the source system, at times, can contain embedded quotes in the content that are escaped (ex. \") - especially when that content is HTML based. Content that does not contain escaped quotes is working without issue.&lt;/P&gt;&lt;P&gt;Example of the incoming content:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&amp;lt;p&amp;gt;Throughout this engaging session you will:&amp;lt;/p&amp;gt;\n\n&amp;lt;ul&amp;gt;\n&amp;lt;li&amp;gt;&amp;lt;span style=\"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Explore the transformative potential of leveraging low-code and no-code tools and workflows to automate repetitive and time-consuming office processes&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;li&amp;gt;&amp;lt;span style=\"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Capture data that can be used to make informed decisions regarding resource allocation&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;li&amp;gt;&amp;lt;span style=\"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Identify areas where investing time and energy can be most impactful&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;/ul&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;However, when it goes to use the content from that step in the recipe to use GraphQL, it appears that the escaped quotes are not being escaped - which, I think, is what is causing the GraphQL connector to have an error.&lt;/P&gt;&lt;P&gt;Example of the content being sent via GraphQL:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;p&amp;gt;Throughout this engaging session you will:&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ul&amp;gt;&lt;BR /&gt;&amp;lt;li&amp;gt;&amp;lt;span style="font-size:11pt"&amp;gt;&amp;lt;span style="font-family:Calibri,sans-serif"&amp;gt;Explore the transformative potential of leveraging low-code and no-code tools and workflows to automate repetitive and time-consuming office processes&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;lt;li&amp;gt;&amp;lt;span style="font-size:11pt"&amp;gt;&amp;lt;span style="font-family:Calibri,sans-serif"&amp;gt;Capture data that can be used to make informed decisions regarding resource allocation&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;lt;li&amp;gt;&amp;lt;span style="font-size:11pt"&amp;gt;&amp;lt;span style="font-family:Calibri,sans-serif"&amp;gt;Identify areas where investing time and energy can be most impactful&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;lt;/ul&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If I use the content with the escaped quotes and the escaped newlines to issue the same call using GraphQL to the destination system using Postman, the operation succeeds without issue.&lt;/P&gt;&lt;P&gt;Is there anyway to change things so that the content remains as it was originally ingested?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 20:17:48 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8957#M3689</guid>
      <dc:creator>bedelman0731</dc:creator>
      <dc:date>2025-02-20T20:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes (HTTP to GraphQL)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8958#M3690</link>
      <description>&lt;P&gt;Hi &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11450"&gt;@bedelman0731&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;From your requirement, I understand that:&amp;nbsp;&lt;BR /&gt;&amp;nbsp;1. You need to pass an &lt;STRONG&gt;HTML payload&lt;/STRONG&gt; with escaped double quotes (\") to GraphQL.&lt;BR /&gt;2. However, GraphQL is &lt;STRONG&gt;ignoring the escape sequence&lt;/STRONG&gt; when processing the request, leading to errors.&lt;/P&gt;&lt;P&gt;To resolve this, we can use Workato’s &lt;STRONG&gt;gsub function&lt;/STRONG&gt; to explicitly replace double quotes (") with escaped quotes (\").&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; &lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;Apply the following formula in Workato before sending the request:&lt;/P&gt;&lt;PRE&gt;data.gsub('"', '\"')&lt;/PRE&gt;&lt;P&gt;Here, &lt;STRONG&gt;data&lt;/STRONG&gt; refers to the incoming HTML content. This ensures that double quotes remain properly escaped when passed to GraphQL, preventing any parsing issues.&lt;BR /&gt;&lt;BR /&gt;Please let me know if my understanding is incorrect so that I can refine the approach and provide a better solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumar K A&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:26:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8958#M3690</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-02-20T16:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes (HTTP to GraphQL)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8960#M3692</link>
      <description>&lt;P&gt;Thank you - I implemented the gsub and the content is now properly escaped. However, the GraphQL is still having issues as it is throwing a&amp;nbsp;&lt;U&gt;Expected string or block string, but it was malformed&amp;nbsp;&lt;/U&gt; error. And if I perform the same mutate via Postman, it succeeds&lt;/P&gt;&lt;P&gt;I suspect that the GraphQL connector isn't "liking" having quotes inside of a field (whether they're escaped or not)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 18:22:20 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8960#M3692</guid>
      <dc:creator>bedelman0731</dc:creator>
      <dc:date>2025-02-20T18:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes (HTTP to GraphQL)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8961#M3693</link>
      <description>&lt;P&gt;Upon further testing - it now appears that the issue is &lt;STRONG&gt;&lt;U&gt;NOT&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;solely with the escaped quotes as originally thought. It seems that it is the \n representation for newline that are being translated to actual newlines within what is trying to be sent over&lt;/P&gt;&lt;P&gt;This content succeeds&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Throughout&lt;/SPAN&gt; &lt;SPAN class=""&gt;this&lt;/SPAN&gt; &lt;SPAN class=""&gt;engaging&lt;/SPAN&gt; &lt;SPAN class=""&gt;session&lt;/SPAN&gt; &lt;SPAN class=""&gt;you&lt;/SPAN&gt; &lt;SPAN class=""&gt;will:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;n&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;n&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ul&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;n&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;li&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;span&lt;/SPAN&gt; &lt;SPAN class=""&gt;style&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Explore the transformative potential of leveraging low-code and no-code tools and workflows to automate repetitive and time-consuming office processes&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;li&amp;gt;&amp;lt;span style=\"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Capture data that can be used to make informed decisions regarding resource allocation&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;li&amp;gt;&amp;lt;span style=\"font-size:11pt\"&amp;gt;&amp;lt;span style=\"font-family:Calibri,sans-serif\"&amp;gt;Identify areas where investing time and energy can be most impactful&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;\n&amp;lt;/ul&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;But it fails when the \n is being replaced with actual newlines&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 20:19:18 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8961#M3693</guid>
      <dc:creator>bedelman0731</dc:creator>
      <dc:date>2025-02-20T20:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes (HTTP to GraphQL)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8963#M3694</link>
      <description>&lt;P&gt;On a successful API call to write the data to the second system without any replacing,&amp;nbsp; what's the issue? Is the second system displaying "\n" literally?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 21:08:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8963#M3694</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-02-20T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes and \n being turned into newline (HTTP to GraphQL</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8964#M3695</link>
      <description>&lt;P&gt;Thank you for the suggestions! The issue was two-fold in that the escaped quotes were being un-escaped and the \n (or \r) were being expanded into newline or carriage returns. The solution which is working is to perform two .gsub operations&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Replace \r\n or \n or \r with a &amp;lt;p /&amp;gt;&lt;/LI&gt;&lt;LI&gt;Replace plain embedded quotes with escaped quotes&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="markup"&gt;DATA.gsub(/(\r\n|\n|\r)/,'&amp;lt;p /&amp;gt;').gsub('"','\"')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 05:34:39 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8964#M3695</guid>
      <dc:creator>bedelman0731</dc:creator>
      <dc:date>2025-02-21T05:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped quotes turning into not-escaped quotes and \n being turned into newline (HTTP to GraphQL</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8965#M3696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11450"&gt;@bedelman0731&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Great to hear that, Happy to help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 09:16:24 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/escaped-quotes-turning-into-not-escaped-quotes-and-n-being/m-p/8965#M3696</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-02-21T09:16:24Z</dc:date>
    </item>
  </channel>
</rss>

