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...
Suggested Answer

auto create purchase order from sales order by using job queue

(0) ShareShare
ReportReport
Posted on by

Hello,

In Business Central Purchase Order can create from Sales Order. By using Sales Order -> Actions -> Functions -> Create Purchase Document -> Create Purchase Orders. Same process can we do by job queue for automation purpose. 

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    You have two options if you want to do that. Either do AL development to write a report / codeunit that you can run in the job queue.

    Or you could possible do it using Power Automate.

    But there is no standard function that will let you trigger this from the job queue as far as i know.

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

    Hi Suvarna ,

    Inge is right, you have to either create a Report or CU and call it with Job queue, which can call CU - 1314, and its function CreatePurchaseOrder, then you can achieve your task.

  • Suvarna Profile Picture
    on at

    Hi Inge M. Bruvik,

    Thanks for your reply.... First I will try with Power Automate.

  • Suvarna Profile Picture
    on at

    Hi Nitin,

    I am creating job queue by using code unit - 1314. I want to put filter condition here with customer number. Can I do this?

    pastedimage1658840086964v1.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    I do not think you can use that codeunit directly in a jobqueue like you try to do.

    There is some more AL code around it that needs to be written.

    What do you want should trigger the creation of purchase doc. Is it the release of the sales order?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans