Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Need to update Line Discount % value from API

(0) ShareShare
ReportReport
Posted on by 15

Hi All,

I need to update Line Discount% value from azure table through Web API. 

Based on customer number i need to update line discount value. I am new to dynamics  so can anyone help on this.

pastedimage1666102188776v1.png

pastedimage1666102276774v2.png

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: Need to update Line Discount % value from API

    Hi, try the standard Apis first.

    More details: salesOrderLine resource type

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesorderline

    https://yzhums.com/6117/

    If you can't meet your needs, you can try using Web Services and custom API pages.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/web-services

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    Hope this helps.
    Thanks.

    ZHU

  • Suggested answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: Need to update Line Discount % value from API

    Hi,

    The screenshot is of Invoice Discount. You can get the values form Sales Line table or Sales Invoice Line. Name of the field is Invoice Discount Amount

    Regards

    Amit Sharma

    www.erpconsultors.com

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans