none
Insert Administrative Tasks using PrepareTimesheetLine + QueueUpdateTimesheet RRS feed

  • Question

  • Trying to insert Admin Tasks using PSI in an existing Timesheet.

    WebSvcTimeSheet.

    TimesheetDataSet.LinesRow newLine = ds.Lines.NewLinesRow();
    newLine.TS_LINE_UID =
    Guid.NewGuid();
    newLine.TS_UID = tsUID;
    newLine.TS_LINE_CLASS_UID = TimesheetConst.const_AdministrativeLineClassGuid;
    newLine.TS_LINE_VALIDATION_TYPE = (byte)TimesheetEnum.ValidationType.Unverified;
    newLine.TS_LINE_STATUS = (byte)TimesheetEnum.LineStatus.NotApplicable;
    newLine.PROJ_UID =
    TimesheetConst.const_AdminTimeProjectGuid;
    newLine.TASK_UID =
    new Guid("0E03F4C1-B3BC-4270-969F-DF6944A889C2"); // ABS - Home Leave
    newLine.ASSN_UID = newLine.TASK_UID;
    Friday, October 22, 2010 2:16 PM

All replies

  • No exceptions in calls to PrepareTimesheetLine and QueueUpdateTimesheet.

    Line even is inserted, but columns [Project Name], [Task Name/Description] remain empty.

    What is missing?

    Friday, October 22, 2010 2:20 PM