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

Adding a new version in version collection of Document set using SharePoint 2013 JSOM

$
0
0

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.






Viewing all articles
Browse latest Browse all 7589

Trending Articles