tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2670-skipping-reminder-transaction-with-pythonInfinite Kind: Discussion 2020-05-01T23:10:25Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/480544012020-01-31T16:38:27Z2020-01-31T23:14:01ZSkipping reminder transaction with python<div><p>I have a python script that I use to update my recurring reminder transactions, and when it is done updating I would like it to programmatically perform the equivalent of the "Skip Transaction" button that is shown when clicking on "Record Next Occurrence", therefore updating the next occurrence dates automatically.</p>
<p>I have looked through the Reminder class documentation but I don't see any method to skip or to set a new transaction date. Can anyone recommend a solution to this? Thanks.</p></div>scott7ktag:infinitekind.tenderapp.com,2009-01-14:Comment/480544012020-01-31T16:54:09Z2020-01-31T16:54:09ZSkipping reminder transaction with python<div><p>Hi Scott,</p>
<p>No problem! Skipping a reminder just means setting the "acknowledged" date to the date of the occurrence that you'd like to skip. Since reminders can only be recorded in chronological order this tells the reminder system to ignore any scheduled occurrences on or before that date. So you'd want to call the following to ignore all events through today:</p>
<p>reminder.setAcknowledgedInt(20200131);<br>
reminder.syncItem();</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/480544012020-01-31T23:05:11Z2020-01-31T23:16:21ZSkipping reminder transaction with python<div><p>Sean, that's great, thanks.</p>
<p>What about to record the associated transaction with the reminder? When I try to use reminder.getTransaction and sync that it doesn't show up as a new transaction. I guess I can create a new transaction and then just get the relevant fields one by one from the reminder; just wondering if there is a better way.</p></div>scott7k