Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Need to update Line Discount % value from API

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

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,116 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans