I have some custom code in the ContentImport_RecordImporting event for checking a mutation date and cancelling when the date is the same or earlier than the local mutationdate. This works fine but the code i have in the ContentImport_RecordImported event always runs, even when the RecordImporting is cancelled.
How do i make sure the rest of the events don't fire?
The status is stored in ImportAction, can be ImportAsNew, Skip, Overwrite. So create an if statement to exclude skip and you will be fine. Below sample code
Code in ContentImport_RecordImported fires when ContentImport_RecordImporting is canceled
Hi Guys,
I have some custom code in the ContentImport_RecordImporting event for checking a mutation date and cancelling when the date is the same or earlier than the local mutationdate. This works fine but the code i have in the ContentImport_RecordImported event always runs, even when the RecordImporting is cancelled.
How do i make sure the rest of the events don't fire?
Cheers,
Harm-Jan
Hi Harm-Jan,
The status is stored in ImportAction, can be ImportAsNew, Skip, Overwrite. So create an if statement to exclude skip and you will be fine. Below sample code
Hope this helps you,
Richard
That was it! Thanks Richard.
is working on a reply...