예외가 없지만 아래 코드는 작동하지 않습니다. 어떤 아이디어? 당신이 그것으로 필드를 참조하지 않는 것 같습니다C#의 워크 플로 작업에서 목록 항목을 업데이트 할 수 없습니다.
SPSecurity.RunWithElevatedPrivileges(delegate() {
using (SPWeb web = this.workflowProperties.Web) {
try {
SPListItem item = web.Lists["NewHireFormsLibrary"].Items[workflowProperties.ItemId - 1];
item["Field 1"] = "Gotcha!!!";
item.Update();
LogHistory("Information", "Workflow indexing complete. " + item["Field 1"], "");
}
catch (Exception ex) {
LogHistory("Error", ex.Message, ex.StackTrace);
}
}
)};
알았어, 단지 업데이트. 비 infopath 필드에 항목을 적용하면이 작동합니다. infopath 필드를 업데이트하려면 어떻게해야합니까? –