EPMFAQ
Project Server Help, FAQs, Blogs, and HowTos
This is The Header Then

Retrieve the Guid of a Custom Field Using its Name

posted May 7th, 2008 by Stephen Sanderlin
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Within the Project Object Model, the Application object has a method, FieldNameToFieldConstant(), that returns a PjField constant for use by the various SetField() and GetField() methods throughout the object model. More information on the SetField Method (and other associated methods) can be found here.

Unfortunately, when using the PSI, there’s no quick way to lookup the Guid for a field. This can be a problem, since the various CustomFieldsRow objects (Task, Resource, Assignment, and Project) do not include the name of the custom field, only the UID (for an example, look at the ProjectCustomFieldsRow entity in the Project 2007 SDK).

Retrieving custom field information in the PSI is accomplished by using the CustomFields web service. The code below is a class that implements a method to retrieve the Guid of a custom field using the field’s name and entity type. I had to chop the code up a lot because of space constraints, so I apologize for the excessive line breaks. This code assumes that you’ve set up a Web Reference to the CustomFields web service named WebSvcCustomFields.




Discuss this post on the EPMFAQ Blog Posts Forum.


Related Posts

  • No Related Posts



Fixed Duration Tasks in Project 2007

posted April 11th, 2008 by Stephen Sanderlin
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Earlier today in the EPMFAQ Forums, there was a discussion concerning an issue in Project 2007 whereby the Duration on a Fixed Duration task is set to 0d if the Work on that task either rolled up or was set to 0h.

This is divergent behavior from Project 2003, and one that appears to be causing issues for a rapidly increasing number of users. Many of us within the community have been aware of this issue for quite some time, but there appear to be many people that are unfamiliar with this little conundrum, be they users, administrators, or consultants.

Here’s my response to the question:

The issue you are referring to manifests when the Work for the task is set to 0h, whether by rollup or entry. This results in the task’s Duration being set to 0d. This is true for all Task Types, including Fixed Duration.




Discuss this post on the EPMFAQ Blog Posts Forum.


Related Posts

  • No Related Posts



Project Server 2007 Post-SP1 Hotfixes

posted February 24th, 2008 by Stephen Sanderlin
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Chris Fiessinger recently posted a list of links to the post-SP1 hotfixes here.

For your benefit, I’ve copied them here:

These hotfixes take advantage of Microsoft’s new Hotfix Request offering… Each KB article for a hotfix has a link whereby you can submit an email request for the hotfix. Microsoft will respond with links to the hotfix. This should save you from having to call PSS every time you need a hotfix. However, if you choose to use these hotfixes, please remember that they have not been fully tested and you may experience some unexpected behavior.

Popularity: 48%




Discuss this post on the EPMFAQ Blog Posts Forum.


Related Posts




The opinions expressed on this site by the authors and those providing comments are theirs alone, and do not reflect the opinions of the respective employers of the authors or any employee thereof. Our respective employers are not responsible for the accuracy of any of the information supplied by on this site.

Terms of Use | Privacy Policy | Publishers

All content on this website is covered by the
Creative Commons Attribution-Share Alike 3.0 United States License.
Theme ©2007 The Heckerped WordPress Theme created by JTk of Doc5 under the Creative Commons Attribution License.