Sorry for the delay in response. The recordimporting event is fired after the document is created. Cancel will make sure the fields will not get updated. What you can do is also hook in the recordimported event Then check if the import is skipped or any other condition you use to determine the cancel and in the event you can delete the document.
Cancelling import not working
In my RecordImporting event I am setting e.Cancel to true however it doesn't seem to be cancelling the import, the node is still created.
Do you need to do anything more than just set this.
Hi,
Sorry for the delay in response. The recordimporting event is fired after the document is created. Cancel will make sure the fields will not get updated. What you can do is also hook in the recordimported event Then check if the import is skipped or any other condition you use to determine the cancel and in the event you can delete the document.
Hope this helps,
Richard
is working on a reply...