Topic by ilamukky
Content
Hello!
I am developing an Addin that creates an incident, and when saved sends the email response to the customer.
I tried to set the "Send on Save" field from Addin, setting IIncident.Response =4, and I see the flag correctly set in the incident workspace... but when I save the record, it is handled as unselected (case 1). If instead I click manually on it before saving, it remains selected, but this time is really set (case 2).
Am I missing anything? Below there are code and screenshots of the 2 cases:
IThread thread = iincident.Threads[0];
thread.Note = "Message Text";
thread.ContentType = ThreadContentType.PlainText;
thread.ChanID = 9; /* 9=Email */
thread.EntryType = 2; /* 2=Response */
iincident.Response.Type = 4; /* 4=manual response -> this makes SendOnSave selected */
Thanks
Ilaria