cancel
Showing results for 
Search instead for 
Did you mean: 

Draft Stock Transfer

Former Member
0 Kudos

Hi,

I have to create a Draft Stock Transfer from DI API.

I cannot find the From Warehouse field in this draft.

How can I create this draft Stock Transfer?

Thanks,

Irina Stanca

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Irina,

This property is not yet exposed via the DI (FromWarehouse) - this is planned for the next major release 8.8.

The only w/a i can think of is to change the warehouse on the user defaults via DI, then add the

draft stocktransfer, and then change the user defaults back again.

In the Business One application you can define user defaults in : Administration>

Setup>General> Users.

Define user defaults for users you connect to the DI with - one of the defaults is warehouse.

1. connect via DI

2. use the UserDefaultGroups Object (catch the specific defaults using

getbykey method and then set the property of the warehouse to the

warehouse you want to move the stock from it).

3. add the draft

4. change back the defaults.

Cheers,

Lisa

Former Member
0 Kudos

Hi Irina Stanca,

I need to create a Draft Stock Transfer from DI API also.

Do you have any solution for your problem???

Thanks,

Soon

Former Member
0 Kudos

Hi,

The solution that Lisa has provided is not working for me.

So, I am going to use a work-around:

Create a header UDF in the Marketing Documents (Stock Transfer), copy it into this UDF the value of the From Warehouse and add a Formatted Search on the From Warehouse in Stock Transfer that will copy it from the UDF.

Hope this helps for you too.

Irina

Former Member
0 Kudos

its property .FromWarehouse in header