In CWS, how do you assign a physical item (file) (at time of creation) to a box, can you do this with documentmanagent, or must you use physical web service to do that ?
Node poNode = new Node();
AttributeGroup[] theAttributeGroups = new AttributeGroup[2];
AttributeGroup theAttributeGroup = new AttributeGroup();
theAttributeGroup.Key = "POCreateInfo";
theAttributeGroup.Type = "POCreateInfo";
// Defined a type of the PO
IntegerValue intValue = new IntegerValue();
intValue.Key = "selectedMedia";
intValue.Values = new long?[] { poType };
StringValue strValue = new StringValue();
strValue.Key = "poLocation";
strValue.Values = new string[] { "ABC" }; // Proper Location ID should be here
StringValue strValueCmt = new StringValue();
strValueCmt.Key = "mtField_Comments";
strValueCmt.Values = new string[] { "" };
// Proper Location ID should be here
theAttributeGroup.Values = new DataValue[] { intValue, strValue, strValueCmt };
theAttributeGroups[0] = theAttributeGroup;
theAttributeGroups[1] = categoryTemplate;
poNode.Metadata = new Metadata();
poNode.Metadata.AttributeGroups = theAttributeGroups;
metadata.AttributeGroups = new AttributeGroup[] { categoryTemplate };
poNode.Type = "PhysicalItem";
poNode.ParentID = folderId;
var curNode = docManagement.CreateNode(ref otAuth, poNode);