Forum Discussion
MS Project Professional - Update Custom Field From Rest API
Hello BukhtiarAhmadIBM ,
In that case you will need to the user the Project object model to programmatically work with MPP files. You could write a VSTO add-in for MS Project and automate this - a user would launch MS Project then start your app from a custom button on the ribbon etc. Example VSTO add-in for Project: https://docs.microsoft.com/en-us/visualstudio/vsto/walkthrough-creating-your-first-vsto-add-in-for-project?view=vs-2022
Paul
Thanks again
Bukhtiar
- Paul_MatherMar 28, 2022MVP
Hello BukhtiarAhmadIBM ,
There is no REST API for MS Project - only Project Server / Project Online. Working programmatically with mpp files requires you to use MS Project. You can automate this using the Project Object model via a VSTO add-in or even a simple VBA Macro.
Paul
- BukhtiarAhmadIBMApr 03, 2022Copper ContributorHi
I was not successful find a macro which make a rest api call and manipulate the response json, is someone can find a sample macro code ?- Paul_MatherApr 04, 2022MVP
Hello BukhtiarAhmadIBM ,
Here are a few examples for Excel VBA:
https://www.appsloveworld.com/solved-how-to-call-rest-api-from-excel-macros-vba-and-parse-json/
https://stackoverflow.com/questions/38246789/how-do-we-use-restful-apis-from-excel-macros-vba
These might help you get something working from MS Project.
Paul