Questions tagged [spfile]

Represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder.

Represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder.

Click Here for class reference.

7 questions
2
votes
2 answers

How to get the metadata of a file in SharePoint

I am trying to get the name property of a file on SharePoint ? If I try to get the metadata of the columns I created, I can get this data with this method file is SPFile. if (file.GetProperty("DocId") != null) { docId =…
kevin
  • 13,559
  • 30
  • 79
  • 104
1
vote
0 answers

SPFile "Content Type ID" is default even after changing programmatically when excel has macros

Below is the code used to update the content type of an spfile. newFile.Item["Content Type ID"] = spWeb.ContentTypes["Subject Attachment"].Id; newFile.Item.Update(); but "Content Type ID" for the attachment file is assigned default value when the…
1
vote
1 answer

How to get the correct LastModifiedDate from SPFile in SP2013

I've got a Issue with SharePoint 2013 Files in Libraries. If I push an File via WebDAV into an Folder the file will still hold it's created/modified date (and that's good!). Other Case is: I use the "New Document" Upload Form - the File will be…
k0alaDEV
  • 61
  • 1
  • 9
0
votes
1 answer

get file in featureActivated encounter an error : “Value does not fall within the expected range”

I set to copy a text file from a module to SharePoint server directory
0
votes
0 answers

strings is showing output by splitting a line into two

oracle$ strings spfilesid.ora |grep LOCATION *.log_archive_dest_1='LOCATION=/oraprod/sid/ oracle$ strings spfilesid.ora |less *.log_archive_dest_1='LOCATION=/oraprod/sid/ flash_recovery_area/archivelog' The output of strings command is getting…
R-K
  • 119
  • 1
  • 1
  • 8
0
votes
1 answer

In DATAGUARD technology, are changes to spfile on PRIMARY propagated to STANDBYs?

In DATAGUARD env, how are changes to spfile on PRIMARY propagated to STANDBYs? e.g. I update parameter resource_manager_plan on PRIMARY. Does the new value also show up for parameter resource_manager_plan on STANDBY? How to keep initora parameters…
R-K
  • 119
  • 1
  • 1
  • 8
0
votes
2 answers

Parse an XML into Java - MetaData Format

I saw some xml parsing in java but I really don't know how I can apply it to my code. Here is my xml file: