Project online rest api sessions RRS feed

  • Question

  • Hello. I am bulding web part for sharepoint using rest api project online. 

    I can see, who checked out project by comare email's.

    But if one user try to edit project in another session - i have error.

    In project info i have CheckOutId (GUID), but i don't know what to compare it with. I need to compare sessions.

    Wednesday, April 17, 2019 4:12 PM

All replies

  • Are you trying to edit something on the project and you get an error? It will help if you give more context to help you find the best solution to your issue.

    In general, If the project is checked-out, you cannot make any updates on the Project until it is checked-in.
    Only one session is allowed to make edits on projects. 
    you can programmatically force check in the project if the user account making the action has the appropriate permission, but you may cause issues for others working on the project. You may want to leave that task to the user if possible and just let them know that your app cannot make edits until they check in the project.
    The IsCheckedOut field will help you determine if a project is Checked-out and use this method to see who has the project open (replace the GUID with your Project ID) 
    <PWA URL>/_api/ProjectServer/Projects('8fcc8d14-76e4-e711-80d1-00155da02e3e')/CheckedOutBy


    Ali Al . Consultant & Development Manager.
    FB TW IN

    Tuesday, April 23, 2019 2:18 PM