Integrate Project Actuals with an External Data Source
To integrate project actuals with an external data source:
- Create or generate one or more JSON objects containing the following fields:
- sourceId: The unique identifier of project actual data in an external source, such as an ERP system.
- projectId: The unique identifier of a the project this project actual will be associated with.
- projectActualName: The name of this project actual.
- Send a request to the API using the following information:
-
Endpoint:
https://localhost:7001/api/restapi/project/projectActuals/syncBatch -
Operation:
POST - Example Request Body:
[ { "sourceId": 1, "projectId": 36103, "projectActualName": "Example Actual" }, { "sourceId": 2, "projectId": 36103, "projectActualName": "Example Actual Two" } ] -
Endpoint:
- The API should return a response similar to the following:
-
Response Code:
207 - Example Response Body:
[ { "statusCode": 201,"primaryKeyName": "projectActualId", "primaryKeyValue": 2003, "sourceId": "2" }, { "statusCode": 204, "primaryKeyName": "projectActualId", "primaryKeyValue": 2002, "sourceId": "1" } ] -
Response Code: