Update Schedule Activities From File V2
Description
This option will allow user to process a P6 XML file and add and update activities and resources to a Unifier schedule sheet. Along with activity information this process will also take activity spread information.
Support
Installation: ASP and Self host
Level | Yes or No |
---|---|
Company Level | No |
Project/Shell Level | Yes |
Prototype
public XMLObject updateScheduleActivitiesFromFileV2(String shortname, String authcode, String projectNumber, String sheetname, String scheduleoptions, String iszipfile, FileObject[] files);
Parameters
Parameter | Description |
---|---|
Shortname | identifier of the company, company's short name |
Authcode | authentication key for the company, in text string |
projectNumber | Identifier of the project/shell. |
sheetName | Identify the name of the schedule sheet. |
iszipfile | This tag identifies if the file provided under files tag is a zip file or .xml file with just activity and resource information. If user wants to send activity spread information, the value of this tag should be yes and the file provided under files tag should be a zip file containing both activity and resource information and the spread information. |
files | FileObject containing the Activity / Resource information and the activity spread information. FileObject is made up of two components |
scheduleOptions | This element will allow message to carry optional information. Following are the tags under this element: |
MapName | Name of the data mapping that should be used while processing XML file |
ActivityIdentifier | Possible values are GUID, ID. ID is the tag of Activity Id in Primavera. |
CBS_NoOfLevelsToMerge | This parameter will take a numeric value. This parameter can be used by user to specify how many levels (CBS Levels) in P6 XML file should be merged.
If you specify 3 then two levels will be merged. But which 3 segments will be based on the next parameter (CBS_startmergefrom) |
CBS_StartMergeFrom |
|
ActivityDeletion | This tag will allow user to determine if the activities that do not exist in P6 should be deleted from Unifier schedule sheet. Possible values are Auto / Confirm. |
ActivityFileName | Name of the file that contains the activity and resource information. Please refer to files tag |
SpreadFileName | Name of the activity spread file name. Please refer to files tag |
Return Value
See Appendix A: Return Values.
Sample Method
updateScheduleActivitiesFromFileV2 ("acme","acme_authcode","Proj-0001","Schedule Sheet 001", "<XML Content>","yes","<scheduleoptions>",files);
Additional Information
ActivityDeletion tag logic is based on the "Delete Activity" check box available on the data mapping window. Following is the logic for this tag.
Delete Check Box | Activity Deletion | Behavior |
---|---|---|
Deselected | Auto or Confirm | Activity Deletion tag is ignored. Activities that are removed under source schedule will not be removed from Unifier Schedule Sheet |
Selected | Auto | Activity Deletion tag is considered. Activities that are removed under source schedule will be deleted automatically under the Schedule Sheet. |
Selected | Confirm | Activity Deletion tag is considered. Activities that are removed under source schedule will not be deleted. System will return an error and will not update the schedule sheet. If no activities are removed under source schedule, system will update Unifier Schedule Sheet. |
ActivityDeletion tags are only considered for updateScheduleSheetFromFileV2 service and not for create.
While processing spread information, the system will only look for ""tag.
If the Import from external source option is checked in Unifier and spread information is not available in XML file then system will error out. This error condition is also valid when this tag is not available in the XML file.
Activity File should start and end with <List_Wrapper> tag
Spread file should not contain any <List_Wrapper> tag
Related Topics
Create Schedule Sheet Activities from Primavera P5 and P6 XML
Create Schedule Sheet Activities V2 from Oracle Primavera P6 XML
Create Schedule Activities from file V2
Update Schedule Sheet Activities from Oracle Primavera P5 and P6 XML
Update Schedule Sheet Activities V2 from Oracle Primavera P6 XML
Get Schedule Sheet Activities from Unifier
Get a List of Project Schedule Sheets
Get a List of Schedule Sheet Data Mappings
Last Published Tuesday, July 1, 2025