Looking for an example for import / export using DFS 6.5 sp3 with .net Productivity layer.
If anyone know has idea about this or implemeted before, Please help me to do so.
I am trying to import document to a specified folder under my Cabinet, Some how I am getting null when I execute Create method for object service,
Anyone please figure it out what I am missing over here.
//Data object with document
DataObject dataObject = new DataObject(new ObjectIdentity(docbase), "dm_document");
//Folder
ObjectIdentity fldObjId = new ObjectIdentity(new ObjectPath(folderPath), docbase); // folderPath = "/CabName/FldName"
//RelationRelationship relationFld = new Relationship();relationFld.Name = Relationship.RELATIONSHIP_FOLDER;relationFld.IntentModifier = RelationshipIntentModifier.ADD;relationFld.intentModifierSpecified = true;
//Reference RelationshipReferenceRelationship folderRefRelation = new ReferenceRelationship();folderRefRelation.Name = Relationship.RELATIONSHIP_FOLDER;folderRefRelation.TargetRole = Relationship.ROLE_PARENT;folderRefRelation.Target = fldObjId;
dataObject.Relationships.Add(folderRefRelation);
//Add contentdataObject.Contents.Add(new FileContent(Path.GetFullPath(filePath), "xml")); OperationOptions operationOptions = null;
DataPackage dp =