I would first like to thank the community for all input and comments. Have been working with integration methods against Business for a long time, from edi files and with VBS, and now with GraphQL. There are different working methods in all the import methods. In this thread my experience is that we had to think very differently than earlier methods. The solution we could do earlier also. But earlier we could send inn suggest(VBS) og look up next voucherno and set in the edi file, but then the counter for nextvoucherno was triggered None of the examples in the GraphQL documentation give the solution we want, some of the suggestion in the thread give some solution. Our scope of what we want to achieve, is to set the same voucherno on all the voucherlines, and we have not got it to work with the suggestion in this thread or from the documentation. What we ended up as a solution is that do meet our scope: In the request for the batch, we set the voucherSeriesNo to the series we want, and set the batchProcessing on 8 For the voucher import, we set no suggest and doesn't send any voucherno field All the voucherlines is imported, but no voucherno are set. To set the voucherno: From the VBNXT ERP on the batch register screen, you can run the process assignVoucherNumber (On Norwegian: Tildel bilagsnummer). The process set the same voucherno on all the voucherline, different voucherno on each batch Send a batch_processing request with the BatchProcessing.assignVoucherNumer with the filter with the batchno you want to process. in the filter part for BatchProcessing.assignVoucherNumer where are using the operator _in and sends in an array of integer of the batchno we want to process. The only question i have to Visma () is what if a processing is gone wrong, do we get a error back with reference to which batch that gone wrong? because the response item we can set ar only succeeded
... View more