Announcements
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 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?
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?
Hi Inge M. Bruvik,
Thanks for your reply.... First I will try with Power Automate.
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.
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.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156