Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

auto create purchase order from sales order by using job queue

Posted on by 205

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. 

Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: auto create purchase order from sales order by using job queue

    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?

  • Suvarna Profile Picture
    Suvarna 205 on at
    RE: auto create purchase order from sales order by using job queue

    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

  • Suvarna Profile Picture
    Suvarna 205 on at
    RE: auto create purchase order from sales order by using job queue

    Hi Inge M. Bruvik,

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: auto create purchase order from sales order by using job queue

    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.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: auto create purchase order from sales order by using job queue

    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.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans