<?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>Response is null when calling a POST API from Expression Rule that uses an OpenAPI Connected System to get a Token</title><link>https://community.appian.com/discussions/f/integrations/24437/response-is-null-when-calling-a-post-api-from-expression-rule-that-uses-an-openapi-connected-system-to-get-a-token</link><description>I have created a Connected System that uses OpenAPI. I then created an Integration that uses the OpenAPI CS to call a User Authentication API that returns a service token. That token is then used to authenticate other APIs that are available for the application</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Response is null when calling a POST API from Expression Rule that uses an OpenAPI Connected System to get a Token</title><link>https://community.appian.com/thread/103448?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 12:36:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ceb9bd84-8e5c-4f38-b4e5-1f5119ea0395</guid><dc:creator>pavana162</dc:creator><description>&lt;p&gt;&lt;a href="/members/charletonh0001"&gt;insurityapp0001&lt;/a&gt;, Sorry for jumping into the conversation 6 months late. Im adding a response here because I had a similar issue but I cannot be sure the root cause is the same.&amp;nbsp;Do you have mixed casing in the Header name? eg&amp;nbsp;&amp;quot;X-AdobeSign-ClientId&amp;quot;&amp;nbsp; can you try either making the Header name all lower case if that is possible, Else in the WebAPI code, update the Header name you expect to a lower case eg. &amp;quot;x-adobesign-clientid&amp;quot; instead of&amp;nbsp; &amp;quot;X-AdobeSign-ClientId&amp;quot; (which would be the Header name used from Postman/ external client) . It is possible that your issue might have been addressed after a version upgrade by Appian. Please do let us know in either case about how your issue was resolved if it has been.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pavan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Response is null when calling a POST API from Expression Rule that uses an OpenAPI Connected System to get a Token</title><link>https://community.appian.com/thread/94790?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 07:46:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85e66b89-d9a1-4628-a649-d8012b8f63b7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you configure the token fetching integration to &amp;quot;Queries Data&amp;quot; for &amp;quot;Usage&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Response is null when calling a POST API from Expression Rule that uses an OpenAPI Connected System to get a Token</title><link>https://community.appian.com/thread/94788?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 07:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f7b8154-3d38-4e81-b8c0-befd50abae25</guid><dc:creator>Anthony Shepherd</dc:creator><description>&lt;p&gt;I suspect that the Integration Object requires a query parameter to be successful otherwise it might just be the expression itself is wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Either way you need to create a rule input in your integration object and reference it in your query parameter. (I added a screenshot of this on your other post)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your expression you don&amp;#39;t need it so complex, the code below should work perfectly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;fromJson(&lt;br /&gt; rule!CO_CXP_POST_UserSession_OpenAPI(&lt;br /&gt; isActive: 1 /* create a rule input for this parameter */&lt;br /&gt; ).result.body&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>