PatF,
No problem -- thanks for the response.
Using the PSI, you'll want to pull the projects (I recommend using
ReadProjectEntities for ProjectCustomFields only), iterate through them to
find ones that meet your desired criteria, then call QueueUpdateProject,
then call QueuePublish. Pretty easy stuff. Just make sure you put in
plenty of error checking. You should also be careful to consider the
impact of an auto-publish if your organization is such that PMs leave
changes in a project that they don't necessarily want published.
I'm not sure off the top of my head whether QueueUpdateProject will work
with an empty dataset, but regardless of whether it does or not I
recommend making a new custom field that contains the date/time that a
project was autopublished. That way you're submitting something to
QueueUpdateProject and you also have some sort of log (unless you want to
go to the trouble of writing to the event and/or ULS logs).
You may want to consider writing a PSI extension to filter the projects
and simply return a list of Project GUIDs that match your criteria. This
would offload most of the data processing onto the server, but the
feasibility of this effort really depends on your server load and your
experience with .NET/PSI/Project Server.
In the interest of full disclosure, you should be aware that your request
is no small undertaking. If this is your first time doing custom
development with the PSI (or with .NET in general), you're probably in for
some significant frustration as you traverse what will likely be a pretty
steep learning curve.
--
Stephen Sanderlin
Principal Consultant
MSProjectExperts
For Project Server Consulting:
http://www.msprojectexperts.com
For Project Server Training:
http://www.projectservertraining.com
Read my blog at:
http://www.projectserverhelp.com
Join the community at:
http://forums.epmfaq.com
thanks Stephen,
basically I have several Project Center views that include custom fields
with graphical indicators driven by formulas, things like date field
comaprisons to current date, etc. but the indicators only change with
new
publishing.
I would like to mass publish files to see indicator changes regardless of
whether or not the PM has published recently
:
There's various ways of doing this, but before we get into that, what
are you trying to accomplish by a bulk publish?
--
Stephen Sanderlin
Principal Consultant
MSProjectExperts
For Project Server Consulting:
http://www.msprojectexperts.com
For Project Server Training:
http://www.projectservertraining.com
Read my blog at:
http://www.projectserverhelp.com
Join the community at:
http://forums.epmfaq.com
does anyone have experience creating some sort of server-side batch
routine
to publish PS 2007 files in bulk that could be set to run nightly.
The
scenario would be: for all projects for [fieldX]="abc" then open,
save,
publish, close, check in. I estimate that the condition would be
true for
about 20% of the 2500+ files on the server.
thanks, PatF