Microsoft Project API: Change of Custom Fields and Numbers

Bruno Schulze 0 Reputation points
2024-10-22T11:39:07.8366667+00:00

Hi Community,

We are trying to change Custom and Number Fields of Tasks through the Microsoft Project API. Therefore, we are checking out the Project. Then perform a merge Request on the following URL with the Following Body:

MERGE https://<tenant>.sharepoint.com/sites/<site>/_api/ProjectServer/Projects('xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx')/Draft/Tasks('xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx')

{

    "Custom_0f066cf14018ef118adc00155da88d13": true,

    "WorkMiliseconds": 100,

"Name": "test123"

}

The Name gets changed (so the API is working), the WorkMiliseconds and the Custom Field remain the same (0 and "false", we also tried like putting the vlaues for the number and the custom field in apostrophe). We also tried it for other Custom Fields with other types (e.g. Collection(edm.string)). Both Fields are changeable in the Project App.

Is there anything we need to consider when trying to change Custom Fields or Number Fields through the API?

Thanks in advance!

Version Project Professional 2013: 15.0.9999.1000

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,137 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,751 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,009 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.