web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get delivery description from delivery term ?

(0) ShareShare
ReportReport
Posted on by 86

Hi Experts,

I want to create a new field called delivery description on sales order lines. How can I bring the description from delivery terms which is on sales order header view as shown in attached image. Please help  thanks in advance.

3007.a.png

Regards

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi ax tech,

    You need to write the code on the initValue of the SalesLine DataSource. So, when you create new line Delivery terms will be auto populated from the header.

    Public void initvalue()
    {
        salesLine.DeliveryTems = SalesTable.DlvTerm;
    }

    Thanks,

    Girish S.

  • ax.tech Profile Picture
    86 on at

    Hi Girish S,

    Thank you for replying but I just want description from delivery terms not all the fields. So, do i have to add something else too?

    Regards

  • GirishS Profile Picture
    27,827 Moderator on at

    Yes, above code will assign only the delivery term from header to line. If you want a description you can add, select statement to get the description.

    Public void initvalue()
    {
        DlvTerm term;
        //instead of select you can also find..
        select firstonly * from term
            where term.Code == SalesTable.DlvTerm;
        salesLine.DeliveryTermDescription = term.Txt;
    }

    Thanks,

    Girish S.

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,602 on at

    Hello, you can write a display method on table (using extension) and add this on form as field.

  • ax.tech Profile Picture
    86 on at

    Thanks Girish S for your valuable time and effort

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans