Skip to main content

Notifications

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

  • ax.tech Profile Picture
    86 on at
    RE: How to get delivery description from delivery term ?

    Thanks Girish S for your valuable time and effort

    Regards

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,575 on at
    RE: How to get delivery description from delivery term ?

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

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: How to get delivery description from delivery term ?

    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.

  • ax.tech Profile Picture
    86 on at
    RE: How to get delivery description from delivery term ?

    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

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: How to get delivery description from delivery term ?

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,165 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans