Description
This method creates activities into an existing Unifier project or shell (cost code type CBS) level schedule sheet using default data mapping.
Support
This method can only support creation of activities in project or shell (cost code type CBS) level schedule sheets.
Installation: ASP and Self host
Level | Yes or No |
|---|---|
Company Level | No |
Project and Shell Level | Yes |
Program Level | No |
Prototype
public XMLObject createScheduleActivities(String shortname, String authcode, String projectNumber, String scheduleSheet, String scheduleXML);
Parameters
Parameter | Description |
|---|---|
Shortname | Identifier of the company, company’s short name |
authcode | Authentication code for the company, in text string |
projectNumber | Identifier of project or shell in Unifier. |
scheduleSheet | Name of Schedule Sheet to import activities into. |
scheduleXML | Content of activities to import. This is obtained from the Primavera P5/P6 xml content. The Primavera XML content should be generated by exporting the full Primavera project. |
Return Value
See Return Values
Sample Method
createScheduleActivities("acme","acme_authcode","Proj-0001","Schedule Sheet 001", "<XML Content>");
Additional Information
You must perform appropriate data mapping setups on the target schedule sheet. This includes mapping Unifier Schedule Sheet columns to Primavera XML elements, and setting appropriate XML Import options. Only elements that are mapped will be copied.
This method can only be used to create new activities not for updating existing activities.
If invoked on an empty schedule sheet, this method will insert activities into the schedule sheet. If invoked on a non-empty schedule sheet, it will overwrite all existing activities (delete and recreate) in the non-empty schedule sheet if this function is allowed in the data mapping setup.
If the method is called on a non-empty schedule sheet and the data mapping setup does not allow overwrite, then the method will return an error in the response.
This service can be used for both Project (Standard) and Shells of cost code type CBS.
Activity identified with this creation method will be GUID.
Data Mapping Marked as default will be used.