Modify enterprise resource calendar exceptions via PSI

D

Dennis

I would like to add/update/remove enterprise resource calendar exceptions
(resource specific vacation time) using the PSI methods.

First of all, I noticed that there is the Calendar web service, which only
exposes base calendar (only Standard in my case), not resource calendars. So
this does not seem to be the way to go.

Then I realized that the ResourceDataSet, which can be retrieved using the
Resource web service, exposes a CalendarExceptionsDataTable, which in fact
contains all the defined resource specific exceptions. However, I have not
been able to perform permanent updates on this table. For example, I can add
a new row to it, but reading the data set again from the server does not show
the updates.

My feeling is that I need to do something to write the updates to the
server, but I'm not sure what that could be. AcceptChanges() does not make a
difference.

Is there someone who has done this before?

Thanks,
Dennis
 
N

Niels Schultz

I'm just getting into those methods myself, but the usual way is to send a dataset to the queue system.
With timesheets that's tswebservice.QueueUpdateTimesheet

so it looks like it would be
calendarWebSvc.UpdateCalendars(CalendarDataSet,...)
for the calendar PSI methods.


EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
D

Dennis

Thanks for your response, Niels. I tried that as well, without any success.
After reading the documentation a few more times I came to the conclusion
that the modification of enterprise resource calendars is not possible via
PSI (base calendars can be modified, however).

My solution now requires a local installation of MS Project and updates
resource calendars via the client API using Interop. This situation is very
unfortunate, because not only does it prevent clean integration with other
back-end systems, but also requires an awkward mix of PSI (to find the
resource I want to update) and the Project client API (to update the resource
calendars). The same weird mix is apparent in Project Professional itself,
which opens the Resource Center in an embedded browser to pull up PWA to
select resources.

I only hope that the Project team is planning on cleaning up this mess and
making ALL server state modifiable via server interfaces.

-- Dennis
 

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