Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

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

(0) ShareShare
ReportReport
Posted on by 71
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 71 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 230,605 Most Valuable Professional 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?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans