<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Convert binary to Appian document</title><link>https://community.appian.com/discussions/f/integrations/35088/convert-binary-to-appian-document</link><description>I have an integration which returns the document in binary format and I can convert that to Appian document using the option to Convert Binary response to Appian document. 
 But this API returns JSON body as below while returning error. I want to extract</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135899?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 15:08:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce6ba6b2-f1f2-4154-b0e6-316459ce656f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You could use two integrations. The first tries to send the document. In case that does not work, you could call the other which is meant to process the JSON instead of saving the binary file.&lt;/p&gt;
&lt;p&gt;Sounds awkward, but depending on how frequently you plan to face this situations, it might be an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135897?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 14:42:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b6ef3eb-434e-4795-b4c1-4b151c1e8297</guid><dc:creator>yogeshc0701</dc:creator><description>&lt;p&gt;Error posted is just the sample one but there are some specific scenarios in which error returned has specific details which can be resolved by user in Appian UI and this action can be retried afterwards.&lt;/p&gt;
&lt;p&gt;Thanks for suggestions!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135896?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 14:39:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9688702-6892-4219-909c-ae08d21efff8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. I am out of ideas.&lt;/p&gt;
&lt;p&gt;But that JSON does not seem to very expressive. Why not just return a simple integration error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135895?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 14:34:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00f3b2d3-6a0d-476c-80ec-20360f1c449c</guid><dc:creator>yogeshc0701</dc:creator><description>&lt;p&gt;Yes, I tried that but it is also giving me document and not the JSON to parse&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1716820477092v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135894?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 14:29:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:05b2b644-ea87-40d6-8ae2-4e7df3536766</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, I understand ...&lt;/p&gt;
&lt;p&gt;I do not have any ready made solution, but did you try to customise error handling? It might be possible to get access to the JSON inside the error handling expression.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135891?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 13:40:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7886f70d-3db4-4cfe-a7de-5dd1c81a0b55</guid><dc:creator>yogeshc0701</dc:creator><description>&lt;p&gt;Thanks for the response but Appian is not converting that JSON response as document and instead returning null value in body, so I am unable to process it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert binary to Appian document</title><link>https://community.appian.com/thread/135889?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 13:36:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3db30ef-b341-49a7-9a43-934f9ca060b7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No, that config cannot be changed based on the return value. But I assume that the API also returns a status code. Then, based on the status code, you could read the JSON from that file and process it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>