<?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>Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/discussions/f/general/13677/clicking-on-linkfield-to-open-url-and-also-save-auditing-data-into-database</link><description>In our project, we have a requirement to audit the link clicks from Appian Page. 
 We would like to store the user, datatime, link Clicked etc. information in a database table and also same time open the URL. 
 OR If Google Analytics link tracking can</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/152302?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2025 16:10:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ff35c7a-979a-4209-acac-2419bb9fdad1</guid><dc:creator>Jesse Knight</dc:creator><description>&lt;p&gt;This is a very old topic to resurrect, but what&amp;#39;s interesting it how both of its subjects are still relevant: auditing of user actions, and multi-action triggers via a single click.&lt;/p&gt;
&lt;p&gt;1. Auditing of user actions has been discussed quite a bit recently. A forum search of the past 18 months should get some great results.&lt;/p&gt;
&lt;p&gt;2. The &lt;a href="https://stackoverflow.com/questions/973098/what-does-http-1-1-302-mean-exactly"&gt;modern standard of redirects&lt;/a&gt; require &lt;strong&gt;no javascript&lt;/strong&gt;. tl;dr - an API response with status code 302 and proper headers is perfect for &amp;quot;single click to do XYZ&amp;quot; in a lot of use cases, particularly in Chrome. For example, I used the redirect trick to allow another system to direct their users to an Appian API, which then used some context in the URL and loggedInUser() results to redirect users to the appropriate place inside Appian.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/152278?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 19:43:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:289f5ae6-c6bc-4eef-8a84-5e1063e174c0</guid><dc:creator>Sravanteja Gadikota</dc:creator><description>&lt;p&gt;Unfortunately, there isn&amp;rsquo;t a straightforward way to achieve this directly in Appian, so I used a combination of &lt;strong&gt;Web APIs&lt;/strong&gt;, &lt;strong&gt;Integrations&lt;/strong&gt;, and &lt;strong&gt;JavaScript&lt;/strong&gt; to make it work.&lt;/p&gt;
&lt;h3&gt;Step 1:&lt;/h3&gt;
&lt;p&gt;Use a &lt;strong&gt;Web API&lt;/strong&gt; in your save link and pass the necessary link information as a parameter.&lt;/p&gt;
&lt;h3&gt;Step 2:&lt;/h3&gt;
&lt;p&gt;Within the Web API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Call an &lt;strong&gt;Integration&lt;/strong&gt; that writes the data to the database.&lt;/li&gt;
&lt;li&gt;Include &lt;strong&gt;JavaScript logic&lt;/strong&gt; to launch the target page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below is a sample outline of the logic used.&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;html&amp;gt;&lt;br /&gt; &amp;lt;script&amp;gt;&lt;br /&gt; window.open(&amp;#39;&amp;quot; &amp;amp; www.google.com&amp;#160;&amp;amp; &amp;quot;&amp;#39;, &amp;#39;_self&amp;#39;)&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt; &amp;lt;body&amp;gt;&lt;br /&gt; &amp;#39;Redirecting to target system&amp;#39;&lt;br /&gt; &amp;lt;/body&amp;gt;&lt;br /&gt; &amp;lt;/html&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span data-teams="true"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62128?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 16:17:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff91b815-1335-4c30-8067-00e9d130a52e</guid><dc:creator>SANTOSH S KUNDLIK</dc:creator><description>No button, its kind of dashboard and link is &amp;quot;Make Payment&amp;quot; and user goes to other external website.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62126?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 16:02:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad1646a3-32cb-4b08-9720-bb2ec5943960</guid><dc:creator>paulc919</dc:creator><description>Is an alternative to save in a local variable which links have been clicked and then persist that in a saveInto command assuming another button is pressed on the screen ? That could be one way of meeting the requirement assuming there is some screen navigation occurring.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62124?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 15:58:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecfbdf4b-eed8-4bb8-8ccd-ded9ab1a9163</guid><dc:creator>paulc919</dc:creator><description>Hi ... what Mike is saying that the functionality doesn&amp;#39;t in the product to support your requirement. You or a Java Developer can create a custom plug in which extends the functionality so that you can then do what you want to achieve. However it then becomes your / another persons responsibility to maintain that custom plug in for compatibility in future versions of Appian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62123?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 15:45:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e17ab85a-dff0-48b5-bdeb-e6f5fc8f25f7</guid><dc:creator>SANTOSH S KUNDLIK</dc:creator><description>I hope, someone  have tried to create it. Its ultimately a custom SAIL component, as a!linkField need to accept it as part of Links property.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62120?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 15:12:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74b8d319-e07f-414e-a551-1d5491613032</guid><dc:creator>Mike Schmitt</dc:creator><description>That&amp;#39;s not what I was suggesting.  What I&amp;#39;m saying is that a skilled plug-in creator might be able to come up with a whole new alternative expression function to use instead of a!safeLink.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62119?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 15:09:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2336d824-b8e6-4fe0-982d-8e5e389bc67e</guid><dc:creator>SANTOSH S KUNDLIK</dc:creator><description>I am not convinced that we can call as custom function using &amp;quot;uri&amp;quot; parameter of link, may be I am missing something.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62116?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 14:13:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e05ee17-4853-4cb7-9415-f782e32015af</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Custom plug-ins can allow you to potentially add &lt;a href="https://docs.appian.com/suite/help/18.3/Custom_Function_Plug-ins.html"&gt;customized expression functions&lt;/a&gt; with functionality you need that&amp;#39;s not offered in out-of-the-box functionality. The burden would be on you to figure out how to write it, but if you are able to figure it out it seems like it might be possible to create a custom link generating rule which captures saveInto data as well as opening the link, all in one click. I have no idea whether this is truly possible, mind you, just that it seems like it might be.&lt;br /&gt; &lt;br /&gt; Alternatively you can attempt to get in touch with Appian and submit an enhancement request with your use case, which I suppose would be to enhance the safeLink rule with the possibility of executing a saveInto when clicked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62115?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 11:52:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fcb4657e-7e5d-4e22-a6d1-97bc07dbb9fb</guid><dc:creator>SANTOSH S KUNDLIK</dc:creator><description>Thanks Mike for understanding, could you please elaborate on how custom plugin can help here?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62090?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 21:21:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fba645e7-b16a-4a02-bf5e-6a9f0ddc0ab6</guid><dc:creator>Mike Schmitt</dc:creator><description>Yes, I anticipate those shortcomings, which is why this is a workaround - however it (or something similar) might be the closest you can come without going the route of developing a custom plug-in.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62089?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 21:15:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d56433a6-f64f-4fe8-9064-7fe2333f708a</guid><dc:creator>SANTOSH S KUNDLIK</dc:creator><description>Mike, we do not want to have 2 clicks and also what if we show actual link but user doesn&amp;#39;t click it. It would have incorrect audit data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking on linkfield to open URL and also save Auditing data into database</title><link>https://community.appian.com/thread/62086?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 20:32:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49cc68ff-72dd-4057-ac65-bb9959a91e85</guid><dc:creator>Mike Schmitt</dc:creator><description>I don&amp;#39;t believe it will be possible to do this within one link click - as you can see the safeLink control doesn&amp;#39;t provide any saveInto capability.  My idea would be perhaps require 2 clicks - the first click would be to show the link (in which you could perform whatever saveInto you like), and then after the user clicks that first link to expose the actual link, they can click the safeLink.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>