Insert/ Update information with OData to PS2013 RRS feed

  • Question

  • Hi folks!

    Has anyone tried to insert or update information in Project Server 2013 via OData?

    A little guide would be appreciated...


    Wednesday, June 5, 2013 3:08 PM

All replies

  • Hi do you have any suggestions about that, because I trying to modify some data using OData, I found this code, but for me is show me an error.

    context.BeginSaveChanges(new AsyncCallback(r =>
                        var dsr = context.EndSaveChanges(r);
                        if (dsr.Any(op => op.Error != null))
                            //Show error message
                        _finish = true;
                    catch (Exception ex)
                        _finish = true;
                        Console.WriteLine("Error Result: " + ex.InnerException.ToString());
                }), null);
                } while (!_finish);


    .Net Developer and SharePoint programmer

    Thursday, December 5, 2013 7:16 PM
  • Hi Carlos,

    The important thing here would be... "what the error says"!

    But anyway I think that insert data via OData in Project Server is not posible, due to the Queue processes.

    You have two endpoints to access OData in Project Server: /_api/ProjectData/ and /_api/ProjectServer/. The first one refers to the Reporting DB, and it´s not intendeed to insert-update data. The second one referes to the Published DB and it´s allowed to insert-update DB. I didn´t tried it, and you will not find any guide by Microsoft recommendend it.

    To insert-update information they recommend to use CSOM.

    If you want to try, please post the entire result!


    Saturday, December 7, 2013 10:53 AM