web
You’re offline. This is a read only version of the page.
close
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...
Answered

Codeunits or Power Automate

(1) ShareShare
ReportReport
Posted on by 234
Hello everyone,
 
Which is a better way to integrate an external system with Business Central if you have its APIs. Power Autoamte or Business Central codeunits using HTTPclient and run them via job queue? Power automate does not rollback the changes in case of error while job queue does revert. Also, we have to sync data real time so which one would be better.
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    Powerautomate will give you the facitlity with low code or No code, while in Business central side you have to build your logic and job queue will run it at minium 1 minute, if you want it real time, I would suggest go with Powerautomate and assign the particular trigger.
     
    for the BC codeunit you can create an API and with procedures inbuilt and call it from Powerautomate.
     
     
    Thanks
     
  • Gerardo Rentería García Profile Picture
    25,230 Most Valuable Professional on at
  • Verified answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    If you want real-time, I doubt Power Automate will meet your needs, depending on the amount of data you have. This may require you to purchase additional licenses for Power Automate
    If data interaction is very frequent, I vote for job queue.
    If the frequency is once a day, both are fine.
    Maybe Job Queue is easier to maintain, because if there is a problem, you have to check Power Automate.
     
    Hope this can give you some hints.
    Thanks
    ZHU
     
  • Pragya752 Profile Picture
    234 on at
    " Power automate does not rollback the changes in case of error while job queue does revert. Also, we have to sync data real time so which one would be better." and what about this part?
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    then you should go with Job queues.
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    If you insert rows individually via the API, this is indeed not possible to rollback.
    But, if you run code through API, for example [ServiceEnabled] procedure in Power Automate, I think this can be rolled back. This is the same as inserting data in the code. If there is no commit, it will rollback if an error occurs.
    For example,
     
    Hope this helps as well.
    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans