none
How to Approve/Reject using SharePoint client Object Model

解答

所有回覆

  • Try this:

    item.set_item('_ModerationStatus', 0);
    item.update();
    context.load(item);
    context.executeQueryAsync(successFunction, failureFunction);

    2011年3月3日 上午 08:26
  • Thanks for your reply, i am not able to see set_item for client.file.

     

    here is my code

    Microsoft.SharePoint.Client.

     

    File testFile = oWebsite.GetFileByServerRelativeUrl(filePath);

    clientContext.Load(testFile);

    clientContext.ExecuteQuery();

    testFile.CheckOut();

    set_item is not member of file (http://msdn.microsoft.com/en-us/library/ee542743.aspx)

    can you share if you have sample code for check out,check in,publish and approve with SharePoint client object model.

     

     


    S.Venkata Appaji
    2011年3月3日 上午 09:29