MS Project Online REST API/Ressource Calendar

%3CLINGO-SUB%20id%3D%22lingo-sub-2968834%22%20slang%3D%22en-US%22%3EMS%20Project%20Online%20REST%20API%2FRessource%20Calendar%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2968834%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--294142256%22%20id%3D%22toc-hId--294116372%22%20id%3D%22toc-hId--294116372%22%3EUpdating%20resource%20calendars%20with%20REST%20API%20in%20project%20server%3C%2FH2%3E%3CDIV%20class%3D%22%22%3E%3CP%3Ehello%2C%3C%2FP%3E%3CP%3EI%20have%20been%20given%20a%20set%20of%20excel%20files%20containing%20the%20nonworking%20hours%20of%20resources%20and%20I%20am%20told%20to%20update%20their%20Ressource%20calendars%20with%20REST%20API.%3C%2FP%3E%3CP%3EHow%20is%20it%20possible%20to%20connect%20the%20excel%20sheet%20with%20Resource%20Calendar%20automatically%3F%3C%2FP%3E%3CP%3EI%20would%20bd%20grateful%20if%20you%20tell%20me%20how%20to%20do%20it%20with%20REST%20API-%3C%2FP%3E%3CP%3Eall%20the%20bests%2C%3C%2FP%3E%3CP%3EAli%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2970293%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Project%20Online%20REST%20API%2FRessource%20Calendar%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2970293%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1219896%22%20target%3D%22_blank%22%3E%40Alireza_Bikdeli%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20blog%20post%20that%20details%20update%20resource%20calendar%20exceptions%20using%20CSOM%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpholpar.wordpress.com%2F2013%2F03%2F06%2Fhandling-calendar-exceptions-with-csom-on-project-online%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fpholpar.wordpress.com%2F2013%2F03%2F06%2Fhandling-calendar-exceptions-with-csom-on-project-online%2F%3C%2FA%3E%26nbsp%3B-%20this%20might%20give%20you%20an%20idea%20on%20how%20to%20do%20what%20you%20need.%3C%2FP%3E%0A%3CP%3EI%20don't%20think%20all%20the%20methods%20are%20available%20via%20REST%20(_api%2FProjectServer)%20to%20update%20resource%20-%20see%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fprevious-versions%2Foffice%2Fdeveloper%2Fproject-online-reference%2Fapi%2Fenterpriseresourcecollection%23methods%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fprevious-versions%2Foffice%2Fdeveloper%2Fproject-online-reference%2Fapi%2Fenterpriseresourcecollection%23methods%3C%2FA%3E%26nbsp%3Bso%20you%20probably%20need%20to%20use%20CSOM.%3C%2FP%3E%0A%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

Updating resource calendars with REST API in project server

hello,

I have been given a set of excel files containing the nonworking hours of resources and I am told to update their Ressource calendars with REST API.

How is it possible to connect the excel sheet with Resource Calendar automatically?

I would bd grateful if you tell me how to do it with REST API-

all the bests,

Ali

1 Reply

Hello @Alireza_Bikdeli ,

Here is a blog post that details update resource calendar exceptions using CSOM: https://pholpar.wordpress.com/2013/03/06/handling-calendar-exceptions-with-csom-on-project-online/ - this might give you an idea on how to do what you need.

I don't think all the methods are available via REST (_api/ProjectServer) to update resource - see here: https://docs.microsoft.com/en-gb/previous-versions/office/developer/project-online-reference/api/ent... so you probably need to use CSOM.

Paul