Question: My History.Type is now an enums. The below returns the message, "cannot convert type 'int' to 'System.Enum'"
objH.StartDate = DateTime.Now;
objH.Duration = 0;
objH.Type=(Enum)(262148);
objH.Timeless = false;
objH.Description = this.pklStatus.Text;
objH.Attachment = false;
//write the record
objH.Save();
How do I cast enums correctly?
Answer: You need to make the following change -
objH.Type = Sage.Entity.Interfaces.HistoryType.atNote