Skip to Content
author's profile photo Former Member
Former Member

Draft Stock Transfer

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 08:07 AM

    its property .FromWarehouse in header

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 02:22 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 04:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.