How to overwrite an existing document in SharePoint Library with a new document with different name but version should be maintain? - sharepoint

In a SharePoint Online Document Library (version with x.x version enabled!) I have a PDF document, let's call it doc1.pdf which I want to replace by a new version.
The new document I have is called doc2.pdf .
I did not find a way yet to upload doc2.pdf and overwrite doc1.pdf. How can I do that?
It seems that I can only overwrite the existing document, if the new one has the same name as the existing one. ?!
Please reach me nagarajan.x.elumalai#gmail.com

You have to upload file with the same name. renaming the old file to doc2.pdf will also enable to add version for file.
Version history tab shows all the version. Different file name is not allowed.

Related

How to auto Archive by version history

I want to put the files from Document library A into another document library called Archive. I have to version history enabled, limited to 10. when a new file gets added in, the older files get deleted. How can I move them to another document library called Archive. How can I achieve this? Please advise.
Using MS Flow you can build a simple workflow that will copy a file from one library to another one. The workflow can be triggered upon file add (list item) event. Everything can be done in MS Flow browser designer. When adding file to archive library you need to change its file name (e.g. add time stamp) so you will not overwrite existing file in archive library.

APEX: Read uploaded excel file with as_read_xlsx

As far as I understand, APEX 5.1 does not support Excel files to be loaded into tables.
I found this package that seems to make it possible to SELECT from Excel files, but it does not show how to use it with, for example, files loaded via the "File Browse" Item.
Now, I am very new to this environment, so please explain it from the beginning.
What I did is I upload the package script to the SQL workshop and executed it, without errors. But now?
APEX 5.1 doesn't support it out of the box, but you can use the EXCEL2COLLECTION plugin (available here).
It is very straightforward, just create a file browse page item with an upload button which calls an onsubmit process (e.g. CreateCollection) of type Excel2Collection[Plug In] - specify the file browse item, a collection name and the CSV separator, then you can do as you please with the data (e.g. you may want to run some validations on the data then insert it into a table where you can access it as normal).

How to rename SharePoint document and create a new version if the specified file name is already in use?

I need to rename an uploaded document by adding some additional information to its file name, currently I do this with an Event Receiver ItemAdded wiring up on Document Library, using code
SPListItem material = properties.ListItem;
material["Name"] = RenameFile(material["Name"].ToString());
material.Update();
//material.UpdateOverwriteVersion(); //same issue
This would works fine until the same file is uploaded again, after renaming the error "the specified name is already in use" will occur although I have enabled document version control.
Do I need to create a new version programmatically? if so, how am I supposed to do it, can someone shed some lights on this? Any help is deeply appreciated.
This may be of some help
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1f003923-dc88-427b-a6b8-34c3616d5b1a/
I think you need to check the document out and then back in

Binding Modified schema file to xsd file in livecycle designer tool

i am using adobe livecycle 8.2 for documents template generation,
i am new to adobe livecycle designer tool.
in my template we are using xsd file to bind data to xdp file.
i have done some changes in schema file.
and want to reflect changes in my designer tool.
if i create new Data Source then all my previous bindings are lost.
i want to keep all my previous binding and also want to bind newly added field.
please help me..
in Data view tab right click on the current schema root node and select Connection Properties.
There you can update the location of the new XSD file and this way you'll preserve all the bindings

Is sharepoint versioning stored inside the document for excel documents?

Does anyone know if SharePoint stores it's version numbers inside the files for Excel files? I would assume that it does not. This is what I need: I have an Excel file stored in a SharePoint document library. The file will eventually be distributed and must be able to function offline. The file is somewhat macro-intense, and I would like to be able to log the version number of the file within the file so that if there are errors, the version number would be known or even recorded in another place. Is there a way to access the version number within VBA without accessing a web service?
You MIGHT be able to try something where on the SharePoint ItemUpdating event you update the XLSX file to reflect the version number you want. I have not tried using the OM to update the Excel document, but I have with word, not with updating a version number.

Resources