Project new
More actions
Project_new
Create a new project object
Syntax
Project_new(name, templateResourceId, parentResourceId)
Arguments
- name: is a string expression. It is the name of the new project
- templateResourceId: is a number expression. It is the id of project resource template
- parentResourceId: is a number expression. It is the id of the parent resource
Return value
An array, it is a project object which contains the following items
| Index | Data type | Value | 
| PROJECT_RESOURCE_ID | number | Resource id | 
| PROJECT_NAME | string | Project name | 
| PROJECT_TEMPLATE_RESOURCE_ID | number | Project template's resource id | 
| PROJECT_TIME_REGISTRATION | bool | If time registration is allowed | 
| PROJECT_COMPLETED | bool | Complete a project | 
| PROJECT_PARENT_RESOURCE_ID | number | Project's path | 
| PROJECT_CODE | string | Project code | 
| PROJECT_PROPOSE_CODE | number | Propose Code [Read Only] | 
| PROJECT_CLIENT_REF_NO | string | Client ref no | 
| PROJECT_TIME_BUDGET | number | Time Budget | 
| PROJECT_CALCULATED_MAN_HOURS | bool | Calculated Man-Hours | 
| PROJECT_PLANNED_START_DATE | array (date time) | Planned Start Date | 
| PROJECT_ACTUAL_START_DATE | array (date time) | Actual Start Date | 
| PROJECT_PLANNED_END_DATE | array (date time) | Planned End Date | 
| PROJECT_ACTUAL_END_DATE | array (date time) | Actual End Date | 
Example
[PROJECT_PLANNED_START_DATE] = getDateTime();
Project_save(project);
Availability
Version 5.6
