<?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>how to get token from integration header</title><link>https://community.appian.com/discussions/f/integrations/21988/how-to-get-token-from-integration-header</link><description>Hi Every One, 
 
 I have one integration with OAuth and token generated in header so how to fetch token from integration header. 
 
 I have tried like rule!Ma_integrationobjectname().result.header.token but getting null value. 
 
 Can anyone suggest on</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to get token from integration header</title><link>https://community.appian.com/thread/86078?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 14:17:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf9a286a-04f0-4776-bfb4-9c1df75aed36</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Devi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See if there is an endpoint available to check the validity of the existing token or else you can call an endpoint(Can be a simple GET&amp;nbsp; API to test the connection status) with the existing token. Check the status of the integration call, if the success is true. You can hide the button else you can show the button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get token from integration header</title><link>https://community.appian.com/thread/86075?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:49:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b29cfe71-347e-4134-a945-83c7caf66eeb</guid><dc:creator>devi</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp;VimalKumar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My scenario :&lt;/p&gt;
&lt;p&gt;I have integration with Authorization code grant type. User not authorized then I&amp;#39;m displaying button with&amp;nbsp;authorization link.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Before showing button I want to check user authorized&amp;nbsp; or not&amp;nbsp;&amp;nbsp;based on integration token. How to check authorized or not??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Devi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get token from integration header</title><link>https://community.appian.com/thread/86073?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:31:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6de5fe91-36ab-4a1f-8d4c-a9b02a05addc</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Devi,&lt;/p&gt;
&lt;p&gt;Try the expression &amp;quot;&lt;span&gt;rule!Ma_integrationobjectname().result&amp;quot; to see the result of the integration call. Based on the response body structure, you can index the token from the response body.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>