Set Incident Custom Field Value via Incident Workspace AddIn
Content
Hi All,
I am trying to set an incident custom field (boolean type) value via incident workspace without refresh or save
However, no luck. Does someone know a way to do that?
Thank you
Code Snippet
//To set the send_request_mail custom field to yes IIncident inc = ircomp.GetWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Incident) as IIncident; // get the list of CustomFields IList<ICfVal> c_inc_field = inc.CustomField; foreach (ICfVal cv3 in c_inc_field) { if (cv3.CfId == 31) { cv3.ValInt = 1; break; } } ircomp.ExecuteEditorCommand(RightNow.AddIns.Common.EditorCommand.None);
0