Diary values are append-only and the value you need to supply is the text part alone & the system takes care of timestamp/user additions. So diary field values are to be set just as character field would. For adding a diary entry, simply do:
fvList[240000008] = "comment"; server.SetEntry(schemaName, nbIncident, fvList); For GetEntry side however, you will receive diary values as DiaryList and your need to iterate over its DiaryEntry items. Regards Appajee -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Mark Bee Sent: Friday, August 11, 2006 3:43 AM To: [email protected] Subject: DOTNET API questions Hi, I'm trying to use the .NET API, but facing problem dealing with a diary field. Adding to a WorkLog field a new comment like this: DiaryList diaryList = new DiaryList(); diaryList.Add(new DiaryEntry(" ", DateTime.Now.ToUniversalTime (),"comment")); fvList[240000008] = diaryList; server.SetEntry(schemaName, nbIncident, fvList); Gives me such an output in the Work Log form: 2006-08-11 11:54:31 username 1155290058,3125 comment What does the "1155290058,3125" mean? Representation of the date? And how to get rid of this? Thanks Mark ________________________________________________________________________ _______ UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

