如何在Umbraco Forms管理端添加已删除的事件,它只显示两个工作流程(Submit和OnApproved)

时间:2018-01-04 12:27:28

标签: umbraco umbraco-forms

我无法在umbraco,umbraco表单中找到已删除的事件或工作流程。基本上我想写一些自定义代码并删除已删除事件的记录。

enter image description here

1 个答案:

答案 0 :(得分:0)

据我所知,没有工作流程。您有this custom workflow或者您应该创建一个监听RecordDeletingRecordDeleted事件的事件处理程序:

Umbraco.Forms.Data.Storage.RecordStorage.RecordDeleting += RecordStorage_RecordDeleting;

Umbraco.Forms.Web.Services.RecordService.RecordDeleted += RecordService_RecordDeleted;

private void RecordService_RecordDeleted(object sender, Umbraco.Forms.Core.RecordEventArgs e)
{
    //your code here
}

 private void RecordStorage_RecordDeleting(object sender, Umbraco.Forms.Core.RecordEventArgs e)
 {
    //your code here
 }