Integrate Project Actual Line Items with an External Data Source
To integrate project actual line items:
- Create or generate one or more JSON objects containing the following fields:
- sourceId: The unique identifier of project actual line item data in an external source, such as an ERP system.
- lineItemType: The type of the line item.
- projectActualsId: The unique identifier of the project actual the line item will be associated with.
- name: The name of the line item.
- Send a request to the API using the following information:
-
Endpoint:
https://localhost:7001/api/restapi/project/projectActualsLineItem/syncBatch
-
Operation:
POST
- Example Request Body:
[ { "sourceId": 1, "projectActualsLineItemCost": { "total": 200, "totalProject": 200, "totalProjectActuals": 200 }, "lineItemType": "LUMP_SUM", "projectActualsId": 2001, "name": "Example Line Item" }, { "sourceId": 2, "lineItemType": "LUMP_SUM", "projectActualsLineItemCost": { "total": 800, "totalProject": 800, "totalProjectActuals": 800 }, "projectActualsId": 2001, "name": "Example Line Item Two" } ]
-
Endpoint:
- The API should return a response similar to the following:
-
Response Code:
207
- Example Response Body:
[ { "statusCode": 201, "primaryKeyName": "lineItemId", "primaryKeyValue": 2, "sourceId": "1" }, { "statusCode": 201, "primaryKeyName": "lineItemId", "primaryKeyValue": 3, "sourceId": "2" } ]
-
Response Code: