Automatically Import timesheet to Update task status

A

Alexandro

Hi everyone,

what i need to do is automatically import the timesheet every time a
resource fill end submit it, so that the resource doesn't need to go
to the task page to update the status of every task.

i was able to catch the event associated eith the timesheet submit
button (timesheet submitted event), i can read the information of the
timesheet (like timesheet ID, timesheet Name, Period ID etc.), using
the admin and timesheet web services methods of the PSI. what i am not
able to do now, is import the timesheet to update task status...
I found the method of the statusing web service
ImportTimesheet(Period_UID); the method do not rise any exception, but
if i go to the task page, i don't see any update to the tasks...
Any idea about the problem?

I also checked the status of every line in the timesheet; i found that
the value of the TS_LINE_STATUS member of every line in the timesheet
is 1 - that means Approved - for the administrative tasks, and 3 -
that means NotApplicable - for the other tasks i have in the
timesheet. More i checked the value of TS_LINE_VALIDATION_TYPE member
of each line, and it is 0 - that means Not Verified - for the
administrative tasks, and 1 - that means Verified - for the other
tasks i have in the timesheet.
i tried to set both the values to 1, but i had no result...

I would be thanksful for any help or suggestion
Cheers
 
A

Alex Angas

After importing the timesheet, you need to call SubmitStatus to actually
submit the task updates imported.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top