import inproject server 2003

S

snap_ml

Hi,
I wont to write a Macro for import my project .mpp in Project server.
Can I set the project task text1,2,3,4 ecc. into enterprice project
text1,2,3,4 ecc.?
 
S

snap_ml

there are two type of problems:
first of all, I need to write an unattended program which could import
(publish) my project.
second, I need to copy some local custom field (i.e.: text1) values to
corresponding organizational ones (enterprisetext1).
thaks a lot for your fast reply !!!
 
E

Ed Morrison

Although the Import wizard allows you to map local custom task fields to
enterprise custom task fields, it does not provide much in the way of truly
automating the process.

To programmatically import a project plan into the enterprise, you should do
the following:

1. Convert local resource into enterprise resources. - Use the
"EnterpriseResourceGet" method.

2. Map local custom task fields to enterprise custom task fields. Use
"ThisProject.Tasks(i).SetField pjTaskEnterpriseText1,
ThisProject.Tasks(i).GetField(pjTaskText1)" (or similar) and loop thru each
task.

3. Remove any redundant objects such as the Gantt View (you'll get a
message that the view already exists every time you open the project plan if
you don't). Use the "OrganizerDelete" method.

4. Set any required enterprise custom project fields. Use
"ThisProject.ProjectSummaryTask.SetField pjTaskEnterpriseProjectText1,
value"

5. Save to the server. Use SaveAs.

Hope this helps.
 

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