<?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>Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/discussions/f/user-interface/23459/rich-text-item-link-property-to-use-two-services-simultaneously</link><description>Hi Devs, I want to use to services in my rich text part, in this on the click of the link and the csv document will be downloaded in the system as an export file, Simultaneoulsy I want to start the process on that click only to delete that csv document</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89881?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 15:03:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba8cb4c2-4542-4c19-b024-e30cdfae2211</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="62731" url="~/discussions/f/user-interface/23459/rich-text-item-link-property-to-use-two-services-simultaneously/89880#89880"]But i am not able to find a service to clean the contents of that folder[/quote]
&lt;p&gt;You merely need the &amp;quot;delete document&amp;quot; smart service in a process model...&lt;/p&gt;
&lt;p&gt;That is what I was trying to suggest above:&lt;/p&gt;
[quote userid="50400" url="~/discussions/f/user-interface/23459/rich-text-item-link-property-to-use-two-services-simultaneously/89879#89879"]Alternatively you could build a whole separate process model which runs nightly, gets all documents in the folder, and deletes documents older than X days for example.&amp;nbsp; [/quote]
&lt;p&gt;To clarify, in the first node you&amp;#39;d use a rule to grab all documents from the folder (since it looks as if they&amp;#39;re all stored in the same folder).&amp;nbsp; Then loop over all the documents and return only documents older than your chosen threshold, to be stored in a PV array.&amp;nbsp; Then loop over the &amp;quot;delete document&amp;quot; smart service for each of those document IDs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89880?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:58:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dddebee-ff67-46a3-bf16-34754959c032</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;This CSV is genereted by the interface code itself, data source is view&lt;br /&gt;I created the PM, for implementing the cleanup&lt;br /&gt;But i am not able to find a service to clean the contents of that folder&lt;br /&gt;I know to set a auto timer, but not able to get the right service to delete the created csv files in the application at the backend&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89879?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:55:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f49b0589-88da-4a7c-868e-51f3f2811887</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Are the CSVs generated by a process model?&amp;nbsp; If so, you could put a timer node at the end of the process which, after it expires, deletes all documents generated in that model.&amp;nbsp; Alternatively you could build a whole separate process model which runs nightly, gets all documents in the folder, and deletes documents older than X days for example.&amp;nbsp; The choices are relatively limitless here depending on your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89878?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:55:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cdf6451f-36d1-4e74-86da-e4b2ef2409d2</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Oh yes. This is a plug-in built by Appian itself. You can find it here -&amp;nbsp;&lt;a href="https://community.appian.com/b/appmarket/posts/content-tools"&gt;community.appian.com/.../content-tools&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89877?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:53:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e03e956-76e1-416a-87f5-799bc08c9dab</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;Is this an externally installed service?&lt;br /&gt;I am not able to see this in my default process model&amp;nbsp;items&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89876?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:51:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41b06b91-58e9-4025-aa40-1d75318e7f7f</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;Let me explain you through the interface,&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1642517303324v1.png" alt=" " /&gt;&lt;br /&gt;The above interface is before i click search&lt;br /&gt;Now, I click search and download:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1642517342395v2.png" alt=" " /&gt;&lt;br /&gt;There will be a rich text to download the generated csv.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1642517385343v3.png" alt=" " /&gt;&lt;br /&gt;As you can see above, in the backend, the folder in which i am pointing to, contains all the csv files, which will pile up one day and slow down the system.&lt;br /&gt;So, I want a solution to delete the contents of this folder after 1 day of the creation of the file.&lt;br /&gt;I am creating this csv from a database view as a source.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89875?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:50:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45295cf9-35c3-4b4c-b87a-7edbf71e8535</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Process models can be built to suit this need pretty easily.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89874?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:50:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abc00e41-7d1f-414b-8739-489101c5e3fb</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1642517435116v1.png" alt=" " /&gt;&lt;br /&gt;You can use this maybe.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89873?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:46:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5962e41-1439-414b-9cd7-5d04fd8355f2</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;Is there any service that we can schedule to just clean up the contents of a folder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89872?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:46:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7260ca1-d183-4fff-a6fe-eb6367e1b713</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;How to run the scheduler if i dont have the document ids?&lt;br /&gt;Can I run the scheduler pointing to the folder constant?&lt;br /&gt;This is the folder that i want not to pile up:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1642517159167v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89871?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:45:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0afd41c9-52b7-4d6a-97f1-f58a0e396975</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Where/when/how is your Export CSV generated?&amp;nbsp; One trick I&amp;#39;ve used in my implementations, particularly for on-demand generated documents, is to have a timer node after the generation node, lasting several hours, and after it expires the generated file is deleted.&amp;nbsp; The users are warned in the UI that they have a relatively limited amount of time to download the exported file.&lt;/p&gt;
&lt;p&gt;If the ones you&amp;#39;re dealing with are generated automatically (i.e. overnight) then you could potentially implement a 2-click solution.&amp;nbsp; I.E. at first the download link could be grayed out and the user sees a separate link next to it saying &amp;quot;Click to mark as seen and enable download&amp;quot;; that click would start a process that can delete the document after a (long) timer has expired, and after that click has been completed, the download link can be enabled for the user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rich Text Item  link property to use two services simultaneously</title><link>https://community.appian.com/thread/89870?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:39:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00e98352-8f7d-4897-ac47-c170dda1073c</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You cannot start two processes/services with a single click.&amp;nbsp;&lt;br /&gt;The closest solution to your problem can be a scheduler that runs overnight to clean the documents from the folder. And then you can keep using the link to just download the document and leave the cleaning on the scheduler process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>