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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Posting Purchase Order.

(0) ShareShare
ReportReport
Posted on by 2,310 Moderator

I have created the class for creating purchase orders and lines, but the requirement is to create PO and receive the order, without asking to receive it.

I'm using the Procedure of "Purchase Header"

pastedimage1664266468319v1.png

It asks me to receive, Invoice, or both.

pastedimage1664266608544v2.png

It's working when I select the receive and click ok.

But I want to create and receive the order without asking to receive it.

Is there any other procedure or any other way to receive the order?

Thanks.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    you can call directly Codeunit::"Purch.-Post" - CU - 90, and before calling it make your

    Purchase header."Receive " := true;

    Purchase header."Invoice" := true;

    It would not ask you anything, directly will post the PO with Receive and Invoice option

    Thanks.

  • Govinda Kumar Profile Picture
    2,310 Moderator on at

    Thanks for the help, Nitin Verma.

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 720 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 436 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 409 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans