Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Trigger PO print/release procedure programmatically

(0) ShareShare
ReportReport
Posted on by 121

Some of our POs are now being created and sent to suppliers using a third-party system. We still need these to be created in Dynamics GP for accounting purposes, however because they have already been released to the suppliers, we want to create these POs at the "released" stage. When I create a PO with eConnect POPTransactionType and set the POSTATUS of the taPoHdr and taPoLine objects to 2 (released), it does not appear to run through the process that it would go through when releasing the PO through the GUI by printing it.

Is there any way I can simulate the printing process programmatically so that Dynamics GP runs through the required procedures and updates the relevant inventory quantities, PO statuses, etc.?

I have tried using SQL Server Profiler to narrow down exact steps that GP takes, but the list is so long and there appear to be so many things affected by the process of printing the PO that I would much rather use any existing method of invocation instead of writing my own code to achieve the same end and possibly introduce bugs.

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    RyanSinfield Profile Picture
    121 on at
    RE: Trigger PO print/release procedure programmatically

    This wasn't working because although I had set POLNESTA on each taPoLine, I'd neglected to set POLNESTASpecified to true. Setting this effectively simulated the printing process.

  • Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
    RE: Trigger PO print/release procedure programmatically

    >>>> Alternatively, is there a way to invoke the "Print Purchasing Documents" procedure to print batches of purchase orders with eConnect?

    No , I don't see any option through eConnect that can invoke the Print Purchasing Document procedure.

    But from below window you can change it. Check the Process button functionality, it will help you.

    3365.po.png

  • RyanSinfield Profile Picture
    121 on at
    RE: Trigger PO print/release procedure programmatically

    Alternatively, is there a way to invoke the "Print Purchasing Documents" procedure to print batches of purchase orders with eConnect?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans