CaseTimeAndExpenses not working as expected (Article # 220)
View products that this article applies to.
Problem:
Using the CaseTimeAndExpenses object can result in an error, such as:
Input string was not in a correct format.
Example:
Dim CaseCloseSetup As New Support.CloseCaseSetup(caseIDNum)
Dim caseTimeExp As New FChoice.Toolkits.Clarify.Support.CaseTimeAndExpenses
caseTimeExp.TotalPhoneTime = New TimeSpan(2, 30, 0)
CaseCloseSetup.CaseIDNum = caseIDNum
CaseCloseSetup.CaseTimeAndExpenses = caseTimeExp
tlktres = supptlkt.CloseCase(CaseCloseSetup)
Resolution:
It does appear to be a bug in the CaseTimeAndExpenses object.
There is an open CR for this issue.
Fortunately, the workaround is easy, just use the additional fields to set the values you want.
Example:
CaseCloseSetup.AdditionalFields.Append("actl_phone_time", AdditionalFieldType.Long, 3600)
Applies To: