Hi, Simple batch_create query/mutation: mutation batch_create($cid: Int!, $date: Int!, $desc: String!)
{
useCompany(no: $cid)
{
batch_create(
values: [{
valueDate: $date,
description: $desc
}],
suggestValues : {
batchNo: {
type: INTERVAL
from: 1000
to: 99999
}
}
)
{
affectedRows
items
{
batchNo
}
}
}
} {
"cid": ***,
"date": 20220923,
"desc": "Test"
} This returns the following: {
"errors": [
{
"message": " Description: A record with the same primary key already exists.. Status: 3."
}
],
"data": {
"useCompany": {
"batch_create": null
}
},
"extensions": {
"vbnxt-trace-id": "***"
}
} But the batch is still created. Am I forgetting something, or is this an error in the API? The batch in VB NXT: Thank you! Magnus
... View more