<?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>Send integration fail status to Process model</title><link>https://community.appian.com/discussions/f/integrations/30579/send-integration-fail-status-to-process-model</link><description>Hi Community members, 
 I have requirement where i need to send the status to process model, if My integrations fails. Can someone help me. 
 
 I have configured it this way, 
 Have created a PV of Error and its of type IntegrationError, but still if</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121564?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 06:43:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d63af82-4e4e-4c49-b4ec-27ee9b4479a8</guid><dc:creator>Anna P</dc:creator><description>&lt;p&gt;use this ac!Error.message&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121547?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 19:19:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbe87990-ddb6-402c-839e-e12f2f1c7d23</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Figured out ..thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121543?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 18:08:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e27d3564-1da4-483a-81dc-d2cd504aff08</guid><dc:creator>Gabriele Camilli</dc:creator><description>&lt;p&gt;Sorry, i didn&amp;#39;t understand, can you rephrase?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121542?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 18:03:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fec2c91-5bd1-4278-8519-36bcc4cc16a4</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I have another case in which via integration am calling web API. In Result am getting the status code based on Web API(if web API is success am getting value as 200,for fail am getting value as 500). But i need to figure out how to display the Status code based on integration also(500 for success, 200 for failure).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121540?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 17:58:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7db5c477-75be-45e9-bdbc-cc37b516e0d9</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/gabriele.camilli"&gt;Gabriele Camilli&lt;/a&gt;&amp;nbsp;for helping out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121537?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 17:41:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83fa4d53-eab5-41dd-a560-c1e79a431c18</guid><dc:creator>Gabriele Camilli</dc:creator><description>&lt;p&gt;It quite depends on the integrations and which codes means success or error, but for 90% of cases you should create an output PV with this expression:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ac!result.statusCode&amp;lt;&amp;gt;200&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if status is not 200 (Success Status Code) it is an error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121534?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 17:35:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:95cd55f8-fda0-4836-8568-50d7157a5e34</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes&amp;nbsp;&lt;a href="/members/gabriele.camilli"&gt;Gabriele Camilli&lt;/a&gt;&amp;nbsp;..that is the case..Can you please help out with screenshot how to do that.. &lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/r.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;In custom output what am i supposed to pass&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121533?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 17:31:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3d0215a-5ae3-47eb-86e6-63c5bd00a704</guid><dc:creator>Gabriele Camilli</dc:creator><description>&lt;p&gt;Usually the error you are looking for will be in the result, the integration worked but the Response is 400 or 500 something, so you could use that in a custom output using the response AC!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send integration fail status to Process model</title><link>https://community.appian.com/thread/121532?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 17:29:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9de4073d-d745-43a4-b30d-6be86103f55b</guid><dc:creator>jordanDon</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Can you provide more info on how do you define &amp;#39;integration fails&amp;#39;? Are you referring to specific http status codes or just when ac!Success = false?&lt;br /&gt;&lt;br /&gt;It might be useful to also capture the ac!Result activity class parameter while you debug what the issue is as this could provide more specific information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>