<?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>Capture Content-Length from an http request</title><link>https://community.appian.com/discussions/f/integrations/34386/capture-content-length-from-an-http-request</link><description>Hi, 
 I&amp;#39;m calling MsGraph API from Appian in a two steps methop, I have to send the content-length from the previous integration as a header information in another call. 
 How can I capture or insert into a variable an http request from an integration</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Capture Content-Length from an http request</title><link>https://community.appian.com/thread/135271?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 09:47:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:840198a8-79fd-4cb8-9220-2f117751519f</guid><dc:creator>Angel Enrique Garcia Adasme</dc:creator><description>&lt;p&gt;Hi Varun,&lt;/p&gt;
&lt;p&gt;In my case, I didn&amp;#39;t have the content-length on the header from the reply.&lt;/p&gt;
&lt;p&gt;So finally I had to create a Web Api where I configurate an&amp;nbsp;a!httpresponse() where I give the content-lenght on the header. After I created an integration where the environment call to itself and take de content-length, and then I can use it to call MsGraph API.&lt;/p&gt;
&lt;p&gt;Thnaks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capture Content-Length from an http request</title><link>https://community.appian.com/thread/131390?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 03:59:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c85b708f-6060-4d76-aa90-96d21fa0c940</guid><dc:creator>VarunTejaGurrapu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/angelg0002"&gt;Angel Enrique Garcia Adasme&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;After you call an integration, data will be like the below picture.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1710820519397v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please check the below expression, to index the content length of Integration.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; index( index( index( rule!KKK_QueryReferenceData(), &amp;quot;result&amp;quot;, {} ), &amp;quot;headers&amp;quot;, {} ), &amp;quot;Content-Length&amp;quot;, {} )&lt;br /&gt;&lt;br /&gt;if you want to make it to integer, just use tointeger().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>