Integrate Project Actuals with an External Data Source

To integrate project actuals with an external data source:

  1. 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.
  2. 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" 
              } 
          ]
    		
  3. 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" 
              } 
          ]