Post Measurement Journal Line

Allows the user to post a new Measurement Journal Line. To use default API journal template and batch - open at least once Measurement Journal Page - it will create default API journal template and batch automatically. To ensure that it is created search for 'Measurement Journal Templates' and visit the proper page. API template should have the proper value in the 'API Template' checkbox.

Uri

POST /api/dynaway/eam/beta/companies({{CompanyID}})/measurementJnlLines

Parameters

CompanyID
- ID of the Company.
Journal_Template_Name
- Length: <=10 characters. Used Journal Template must exist in the database.
Journal_Batch_Name
- Length: <=10 characters. Used Journal Batch must exist in the database.
Line_Number
- Multiple of 10000.
Measurement_No.
- Length: <=20 characters. Used Measurement must exist in the database.
Posting_Date
- Format: "YYYY-MM-DDTHH:MM:SS.sssZ" Example: "2020-12-23T10:09:25.123Z"
Reading_Value

Form Data

{
    "journalTemplateName": "Journal_Template_Name",
    "journalBatchName": "Journal_Batch_Name",
    "lineNumber": Line_Number,
    "measurementNo": "Measurement_No.",
    "postingDateTime": "Posting_Date",
    "readingValue": Reading_Value
}
or with default API measurement journal batch and template
{
    "measurementNo": "Measurement_No.",
    "postingDateTime": "Posting_Date",
    "readingValue": Reading_Value
}

JSON Response

{
    "journalTemplateName": "DEFAULT",
    "journalBatchName": "DEFAULT",
    "lineNumber": 10000,
    "id": "2c22206c-8e4e-eb11-89f8-0022481ff96a",
    "measurementNo": "THERMOMETER H1",
    "unit": "C",
    "postingDateTime": "2020-12-23T10:09:44Z",
    "readingValue": 15,
    "description": "Thermometer in Hall 1",
    "externalDocumentNumber": ""
}
Copyright Dynaway A/S