User Profile
MortenFlexyBox
6
Posts
0
Kudos
0
Solutions
25-05-2022
13:04
Hi,
As far as our testing has gone, it does not seem to be possible to both delete all lines and insert new lines in the same PUT operation.
We recommend that you either first insert the new lines and delete the old lines or in the other order.
Example:
PUT journalTransaction/000090
{
"journalTransactionLines": [
{
"operation": "Delete",
"lineNumber": {
"value": 1
}
},
{
"operation": "Delete",
"lineNumber": {
"value": 2
}
},
{
"operation": "Delete",
"lineNumber": {
"value": 3
}
}
]
}
Followed by PUT journalTransaction/000090:
{
"journalTransactionLines": [
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"accountNumber": {
"value": "1920"
},
"project": {
"value": "X"
},
"transactionDescription": {
"value": "Testing"
},
"creditAmountInCurrency": {
"value": 400
}
},
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"accountNumber": {
"value": "2000"
},
"project": {
"value": "X"
},
"transactionDescription": {
"value": "Testing"
},
"debitAmountInCurrency": {
"value": 200
}
},
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"accountNumber": {
"value": "1060"
},
"project": {
"value": "X"
},
"transactionDescription": {
"value": "Testing"
},
"debitAmountInCurrency": {
"value": 200
}
}
]
}
... View more
Activity Feed for MortenFlexyBox
- Posted Allow updating the conversion table on InventoryItems using the API on Ideas in Developers Visma.net. 06-09-2022 13:03
- Posted Re: How to delete a JournalTransactionV2 entry ? on Forum in Developers Visma.net. 25-05-2022 12:24
- Posted Sv: How to delete a JournalTransactionV2 entry ? on Forum in Developers Visma.net. 15-05-2022 16:29
- Posted Sv: How to delete a JournalTransactionV2 entry ? on Forum in Developers Visma.net. 12-05-2022 07:39
- Posted Re: How to delete a JournalTransactionV2 entry ? on Forum in Developers Visma.net. 11-05-2022 08:27
- Posted How to delete a JournalTransactionV2 entry ? on Forum in Developers Visma.net. 11-05-2022 24:29