<?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>safe link to execute a rule</title><link>https://community.appian.com/discussions/f/general/18120/safe-link-to-execute-a-rule</link><description>Hello Team, 
 I have to create a link for export to excel and have created a rule which generates exportabledatsubset for download. 
 Now i am using below code to call it in expression but getting error. 
 
 Expression evaluation error at function a!safeLink</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: safe link to execute a rule</title><link>https://community.appian.com/thread/71308?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 09:57:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a25666c3-62b3-467e-99f9-0ea494c085ea</guid><dc:creator>gauravp0003</dc:creator><description>&lt;p&gt;I am able to fix after using tojson (in interface) and converting it from string to value in expression using fromjson.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Interface code:&lt;/p&gt;
&lt;p&gt;link: a!safeLink(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; uri: getdatasubsetdownloadlinkfromrule(&lt;br /&gt; rule: rule!test_exportexcelrule,&lt;br /&gt; input: a!toJson(&lt;br /&gt; {&lt;br /&gt; local!selctapp&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rule Code:&lt;/p&gt;
&lt;p&gt;with(&lt;br /&gt; local!export:a!fromJson(&lt;br /&gt; ri!input&lt;br /&gt; ),&lt;br /&gt; local!pagingInfo:a!pagingInfo(1,-1),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: safe link to execute a rule</title><link>https://community.appian.com/thread/71293?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 10:03:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b6affcb-18f0-4c55-a287-8d6031ef8527</guid><dc:creator>gauravp0003</dc:creator><description>&lt;p&gt;Hello Marcel. Yes I checked that and kind of hoping to see if any workaround available to achieve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: safe link to execute a rule</title><link>https://community.appian.com/thread/71292?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 10:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5058046e-c776-428a-8635-366491c5b609</guid><dc:creator>Marcel Paradies</dc:creator><description>&lt;p&gt;Have you verified that the downloadlink is a weblink as per&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.4/Appian_Data_Types.html#safeuri"&gt;https://docs.appian.com/suite/help/19.4/Appian_Data_Types.html#safeuri&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>