Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Is it possible to put ...
Finance forum
Answered

Is it possible to put all batch jobs on hold using the BATCH ODATA API

Posted on by 69
Hello Community, 
 
I was able to test the API call mentioned in the below article. However, it just mentions one service API Call, which can put a specific batch job to a waiting status.
 
 
I was able to see in the Power Automate that it has more Services like Hold ALL jobs, but it does not seem to work with the API nor does it work with the Power Automate tool.
 
Has anyone tried them? Any ideas?
 
Thanks, 
Ankit
  • Verified answer
    AK2 Profile Picture
    AK2 69 on at
    Is it possible to put all batch jobs on hold using the BATCH ODATA API
    Thank you Martin!
     
    I saw the service in Power Automate.
    I got the answer to my question while answering you :) 
    It seems part of a BatchGroup and not a Batch Job. I was able to send a request..
    {Url}/data/BatchGroups/Microsoft.Dynamics.DataEntities.HoldAllJobs

    Seems like we need to create Batch Groups for jobs that need to be paused.. still needs to be tested..

  • Martin Dráb Profile Picture
    Martin Dráb 228,041 Super User 2024 Season 2 on at
    Is it possible to put all batch jobs on hold using the BATCH ODATA API
    If you look at the data entity (BatchJobEntity) in F&O, you'll see that SetBatchJobToWaiting is the only OData action is offers (at least in 10.0.37). Where do you "Services like Hold ALL jobs"? On some other entity?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans