If you wish to retrieve the schedule information for a user you will need to call the GetUserSchedule method. This method is available to developers from the Users.asmx Web Service and is used to retrieve the schedule information for all users.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<GetUserScheduleResult> <Error> <Code>string</Code> <Description>string</Description> </Error> <Success>boolean</Success> <UserSchedule> <UserScheduleDefinition> <UserId>int</UserId> <Interval>int</Interval> <LastRun>dateTime</LastRun> </UserScheduleDefinition> <UserScheduleDefinition> <UserId>int</UserId> <Interval>int</Interval> <LastRun>dateTime</LastRun> </UserScheduleDefinition> </UserSchedule> </GetUserScheduleResult> |
Error - Code / Description
An error code and description if the call to the web service is unsuccessful and the Success if False.
...
1021 – User authentication failed
Success
This will be either True or False. If False an error message will be provided in the Error result, if True the UserSchedule will be provided.
UserSchedule
A UserSchedule entry will be returned for each user with the following entries:
...
Interval
This is the interval in secs???????seconds.
LastRun
This is the date and time that My Alerts was last run for this user.
...