Topic by James Harris
Content
Hi,
I have been trying to set the Answer.ExpiresDate to null without success using an Addin and Connect Web Services.
I am using the sample code and can successfully set other fields to Null such as notes or Comment fields. I have set the Answer.ValidNullFields to AnswerNullFields which includes the ExpiresDate.
I did notice that the actual field is Answer.Expires but the API references it as ExpiresDate. I suspect this is a product defect but I was wondering if anyone else has successfully managed to set the Answer Expiry date to null before?
Basic code looks like this.
testAnswer = new Answer();
testAnswer.ID = new ID(){id = 123, idSpecified = true};
testAnswer.ExpiresDate = null;
testAnswer.ValidNullFields = new AnswerNullFields()
testAnswer.ValidNullFields.ExpiresDate = true;
...
soapClient.Update(....);
I am actually using a Batch to update multiple objects, it's all working fine but the Answer ExpiresDate will not reset and stays as its old value, but no error is thrown. Other fields are updated / set to null just fine. Using Soap 1.1.
Thanks!