web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,304 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.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: Posting Purchase Order.

    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,304 Moderator on at
    RE: Posting Purchase Order.

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,921

#2
YUN ZHU Profile Picture

YUN ZHU 2,012 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,999 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans