<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>Purge vs. Delete handling in Server Events</title><link>https://www.aras.com/community/f/development/3479/purge-vs-delete-handling-in-server-events</link><description>Hi,

Is it possible to differentiate between delete and purge when performing an onAfterDelete or onBeforeDelete Server Event? Unfortunately an &amp;quot;onPurge&amp;quot; event is not available, but maybe it´s possible to &amp;#39;simulate&amp;#39; that?

Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Purge vs. Delete handling in Server Events</title><link>https://www.aras.com/community/thread/1072?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 08:31:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0f0d07c8-c2c1-4853-ad0d-066ca629b4a0</guid><dc:creator>AngelaIp</dc:creator><description>Hi Chris,

it works, thanks!

I am now even quite happy that there is no separate &amp;#39;onPurge&amp;#39; Event... With this code, I only have to add a few lines in the Method, instead of writing a completely new one.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge vs. Delete handling in Server Events</title><link>https://www.aras.com/community/thread/1046?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 10:56:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2e9bb2fd-dde6-4dd4-b2c4-b39a33b4628e</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

You can use the sample below to determine if an item is being purged from either an onBeforeDelete or an onAfterDelete server event.

&lt;pre&gt;&lt;code&gt;// This action can either be &amp;quot;purge&amp;quot; or &amp;quot;delete&amp;quot;
if (this.getAction() == &amp;quot;purge&amp;quot;) {
// Handle the case where you are purging
}&lt;/code&gt;&lt;/pre&gt;


Chris

_______________________________________

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>