Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Automate sending the approval request via a Job Queue

(1) ShareShare
ReportReport
Posted on by 316
I have set up a sales order and I wish to automate sending the approval request on a job queue, i.e. we don't want to have to manually kick off the Request approval. How can I do this on Job queue? 
  • Suggested answer
    Valentin Castravet Profile Picture
    27,891 Super User 2025 Season 1 on at
    Automate sending the approval request via a Job Queue
    In that case I would create a custom codeunit that loops through the sales orders every x amount of minutes and if the location code is not empty it sends it for approval.
     
    Fiy in Business Central the status of a document will be released after its been approved. When you are creating the orders from CRM they have to be created with the status of open.
     
  • October Sky Profile Picture
    316 on at
    Automate sending the approval request via a Job Queue
    I also should mention that there will be some Sales Orders coming from D365 CRM system and we would be looking to have those with a status of 'Release' automatically in BC.
  • October Sky Profile Picture
    316 on at
    Automate sending the approval request via a Job Queue
    Hi @Saurav
    The scenario will be a few touchpoints by a few users populating the Sales Order with the final act being the location field in the header being populated. This would be the trigger for the Job Queue.
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    Automate sending the approval request via a Job Queue
    Hi,
     
    As everyone said it's not possible out of the box.
     
    Additionally, I would like to understand what the trigger is to invoke job queue?
     
    At some point in document, you would like to automatically send for approval but what is that instance. Do you have a custom field, if that is true then you want to send for approval or some other instance.
     
    Based on your response we can surely suggest best way to approach this request.
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    81,794 Super User 2025 Season 1 on at
    Automate sending the approval request via a Job Queue
    There is really no way in the standard. Even if you set the standard Codeunit, it will not be applied to the current document. In any case, this requires customization.
     
    Hope this helps as well.
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    27,891 Super User 2025 Season 1 on at
    Automate sending the approval request via a Job Queue
    As far as I know its not possible out of the box. You can create a custom codeunit that will be used in the job queue. You can also look into using Power Automate as perhaps you have more flexibility there. But how will you know when the order is finalized and is ready to be sent for approval automatically?
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans