Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Submit file to Record Center programmatically using OfficialFileCore. Taxonomy field value not being set.

$
0
0

Hi,

I am submitting files to my Record Center through code, but the taxonomy field value is never set

List<Microsoft.SharePoint.RecordsRepositoryProperty> properties = new List<Microsoft.SharePoint.RecordsRepositoryProperty>();

properties.Add(new Microsoft.SharePoint.RecordsRepositoryProperty() { Name = "Name", Type = "Text", Value = filename });//fileName
properties.Add(new Microsoft.SharePoint.RecordsRepositoryProperty() { Name = "ContentType", Type = "Text", Value = "glb_recordsubmit" });
properties.Add(new Microsoft.SharePoint.RecordsRepositoryProperty() { Name = "Title", Type = "Text", Value = "Here is my Title" });properties.Add(new Microsoft.SharePoint.RecordsRepositoryProperty() { Name = "glbTestMMValues", Type = "TaxonomyFieldType", Value = "2;#Value2" });
properties.Add(new Microsoft.SharePoint.RecordsRepositoryProperty() { Name = "g90232c0981b450a98cf155220ba26bf", Type = "Note", Value = "Value2|2015ded9-e41f-4333-9d38-335996547277" });
												 //This is the hidden note field's internal name, found using SharePoint Manager.  I have also tried glbTestMMValuesTaxHTField0
string destination = null;
OfficialFileResult result = OfficialFileCore.SubmitFile(web, fileInput, properties.ToArray(), "glb_recordsubmit", filename, @"VMSP2013\administrator", false, out destination);

I get no errors, the document is created and routed but the TaxnomyField is never set.

Has anybody been able to populate TaxnomoyFields using this method?

Regards,

Atli


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>