Hi,
I have to add new version to document set using SharePoint 2013 JSOM (Javacript Client side object Model). I am not getting any way in JSOM to achieve the same. I have to achieve this functionaliy inSharepoint hosted App.
Please find below server side working Code
web.AllowUnsafeUpdates = true;
listItem.Update();
DocumentSet documentSet = DocumentSet.GetDocumentSet(listItem.Folder);
documentSet.VersionCollection.Add(true, currentUser.Name);
web.AllowUnsafeUpdates = false;
I have to achieve same functionality using Sharepoint 2013 JSOM.Requesting any one to please help me on this.