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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How do i create invoice through custom code in c#?

(0) ShareShare
ReportReport
Posted on by 106

My create invoice button is broken , i want to create invoice though custom c# code in order entity So that it maps Product lines to invoice lines. Please share some valuable information ASAP.

Thanks

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Here is the code that you need - docs.microsoft.com/.../sample-process-quotes-sales-orders-invoices

    Look for ConvertSalesOrderToInvoiceRequest  in it.

    Good luck.

  • Raghav Chadha Profile Picture
    106 on at

    Will it copy order products to invoice product in that invoice?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Yes, it will.

  • Suggested answer
    Ak Negi Profile Picture
    320 on at

    Hi Raghav

    Use ConvertSalesOrderToInvoiceRequest in your code. please  check below link

    docs.microsoft.com/.../sample-process-quotes-sales-orders-invoices

    Thanks

    Arun Singh Negi

  • ashish12 Profile Picture
    3,079 on at

    docs.microsoft.com/.../sample-process-quotes-sales-orders-invoices

  • Suggested answer
    ashish12 Profile Picture
    3,079 on at

    docs.microsoft.com/.../sample-process-quotes-sales-orders-invoices

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans