cancel
Showing results for 
Search instead for 
Did you mean: 

How to add the batchnumber with DI API?

Former Member
0 Kudos

Hello,

When we receive the items to the warehouse, for example purchase delivery notes, the system would prompt the batch number input form if the item is managed with batch number. Some time the batch number is only the date information. Is it possible to add the batch number with the DI API? I tried many times, but it is hard to get the current object with DI API and it is not possible to add the batch number to the current object, for example purchase delivery notes.

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jianli Liu,

You cannot change or add a Batch Number for a Goods Receipt Purchase Order, or a Purchase Invoice, after the document is saved, either using B1's interface or using the DI API.

Kind Regards,

Vítor Vieira

Former Member
0 Kudos

Thanks very much for your answer. Acturally, I want to add a button to the purchase delievery notes form. The batch number could be added to each line automatically when the user press this button during he/she input the delivery notes information through B1 client. Do you think it is possible or not?

Former Member
0 Kudos

Hi Jianli,

If you want to put the Batch number in a UDF at the row level, yes its possible. If you need to store the Batch Number using B1's Batch management functionality you don't need to develop anything. The user can simple right-click the form and press "manage Batch/Serial Number" to open the Batch management form.

Regards,

Vítor Vieira

Former Member
0 Kudos

Hi Vítor,

If use the batch number management form to input the batch number , I have to input one by one. Because the batchnumber has the simple rule, just like the ItemName+Date, is it possible to create the batch number automatically with DI API or some other solution?

Thanks

Jianli

Former Member
0 Kudos

Hi Jianli,

You can either do the entire document through the user interface or using the DI API, never both.

Best Regards,

Vítor Vieira