Command, Introduced in version 2.18
POST https://localhost:8001/sv/001.1/api/v1/Common/Commands/CreateComment
Creates a comment of a certain type on an entity. If a comment of the specified type already
exists for the entity, nothing happens and its information is returned instead.
Returns EntityCommandResponse
The root entity id of the response is the business key identifier of the entity that the comment
was created for.
The entity id of the response is the business key identifier of the newly created
comment. References Comments
Properties
Name |
Type |
Summary |
Introduced in |
EntityId |
Int64 |
The business key identifier of the entity to create a comment for.
|
|
EntityType |
Int32 |
The type of entity to create a comment for.
- ProductRecord: 0
- Part: 1
- Revision: 2
- DrawingRevision: 3
- OperationRow: 4
- MaterialRow: 5
- CaseEntry: 6
- ManufacturingOrderOperation: 7 (Introduced in version 2.31)
- Quote: 8 (Introduced in version 2.32)
- CustomerOrder: 9 (Introduced in version 2.32)
- Inquiry: 10 (Introduced in version 2.32)
- PurchaseOrder: 11 (Introduced in version 2.32)
- ManufacturingOrder: 12 (Introduced in version 2.33.2)
- Project: 13 (Introduced in version 2.36)
- Customer: 14 (Introduced in version 2.41)
- CustomerPartLink: 15 (Introduced in version 2.41)
- Supplier: 16 (Introduced in version 2.41)
- SupplierPartLink: 17 (Introduced in version 2.41)
- ManufacturingOrderMaterial: 19 (Introduced in version 2.48)
- ProjectActivity: 20 (Introduced in version 2.50)
- CustomerRelationshipManagementActivity: 21 (Introduced in version 2.55)
- Voucher: 22 (Introduced in version 22.2)
- AccountsReceivable: 23 (Introduced in version 22.4)
- BusinessContactReference: 24 (Introduced in version 23.4)
- ManufacturingOrderNode: 25 (Introduced in version 23.9)
- CustomerOrderActivity: 26 (Introduced in version 24.3)
- AccountsPayable: 27 (Introduced in version 24.4)
- QuoteActivity: 28 (Introduced in version 24.8)
- PurchaseOrderRow: 29 (Introduced in version 25.3)
- Invalid: -1
|
|
EntityCommentType |
Int32 |
The type of comment to create.
- Comment: 0
- BlockMessage: 1
- PartSalesComment: 10
- PartPurchaseComment: 11
- PartManufacturingComment: 12
- PartReceivingInstruction: 13
- PartPickingInstruction: 14
- CaseEntryInternalComment: 15
- CaseEntryContactComment: 16
- CaseEntryExternalComment: 17
- CaseEntryActualRejectionDescription: 18
- CaseEntryReasonComment: 19
- CaseEntryCostComment: 20
- ProductRecordCertificate: 21
- ProductRecordWarrantyCommitment: 22
- ProductRecordInstallationComment: 23
- InternalComment: 24 (Introduced in version 2.32)
- ExternalComment: 25 (Introduced in version 2.32)
- PickingList: 26 (Introduced in version 2.55)
- ReasonLostComment: 27 (Introduced in version 22.6)
- BusinessContactReference: 28 (Introduced in version 23.7)
- ReceivingMessage: 29 (Introduced in version 25.3)
- Invalid: -1
|
|
Example
{
"EntityId": 0,
"EntityType": 0,
"EntityCommentType": 0
}