|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Creates enterprise custom fields, where formulas are in a language-dependent format.
Namespace: [CustomFields Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/CustomFields.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/CustomFields.asmx?wsdl
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/CustomFields/CreateCustomFields2", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/CustomFields/", ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/CustomFields/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)] public void CreateCustomFields2( CustomFieldDataSet cfds, bool validateOnly, bool autoCheckIn )
- Type: [CustomFields Web service].CustomFieldDataSet
The CustomFieldDataSet contains the custom field definitions.
- Type: System.Boolean
If true, validate the CustomFieldDataSet without creating the custom fields.
- Type: System.Boolean
If true, check in the custom fields after they are created.
New method in Project Server 2010.
Formulas in the CustomFieldDataSet that are used to calculate custom fields or graphical indicators can be written in the locale format that is specified in the Regional and Language Options control panel of the computer running Project Server. The CreateCustomFields2 method saves the formulas in a language-independent format. By comparison, the CreateCustomFields method saves formulas without regard to the locale format.
The CreateCustomFields method and the CreateCustomFields2 method, as well as Project Web App, all allow you to create an enterprise project custom field of type Flag, and set the custom field to be workflow controlled. However, Project Server workflows cannot control Flag custom fields. You should not set project custom fields of type Flag for workflow control.
Project Server Permissions
Allows a user to modify the definitions of enterprise custom fields and lookup table values. Global permission.
If the user did not check out the custom fields, also requires administrative permissions to force check in.