Hi All,
I have list of audit notifications. But I want to auto delete notifications after five days. There should not be notifications after five days from existence date. How can I achieve it ? If I get any demo oml that would be very helpful.
Thanks in advance.
Hello Ajit,Demo is okay but you will get this through wording also let try this :)but you directly write the delete action in Core side for notification and wake up that on the timer to delete that recordfor 5 days you need to set that In one variable (Last update date ) and timer will run for every day /night as once1) first it will check the in if condition the difference between lastupdate date and current is 5If false go and end the timerIf True go to delete the record and again update that LastupdateDate=currdate() so you will override last update day to today and this process goesOnThanks and Regards,
Akshay Deshpande
If possible then could you please send the demo oml.
Thanks,
Ajit Kurane.
Hello ajit here I am pasting the Demo OML for youif you dont want to store the date in site property then you can create one entity to save updated date (1 record every timer run it will update that only )Thanks and Regards,
Without site property demo is here