web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Executing a page action without blocking the ui

(0) ShareShare
ReportReport
Posted on by 12

I have a page action that call a procedure in a codeunit. I have to pass various params to this, not only text but various like jsonobjet and other. The elaboration vary but it can last several minutes. There's a way to do it without blcking the UI?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    157 on at

    Have it as an api page and pass a json object for all the data. Or have a codeunit accessible as a web service and to similar

  • Suggested answer
    YUN ZHU Profile Picture
    100,392 Super User 2026 Season 1 on at

    Hi, I think you can try Page Background Tasks.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-page-background-tasks

    Hope this helps.

    Thanks.

    ZHU

  • Executing Page Action without blocking the UI Profile Picture
    12 on at

    The Api page is an idea, but complex I have to learn from zero. The codeunit is not possible, I have to use a controladdin and from codeunit doesn't go

  • Executing Page Action without blocking the UI Profile Picture
    12 on at

    Hi Zhu, I think the page background task is no good for me. I have to pass to the task a record, but I don't know how to convert it to text. More the task has to finish even if the record change or the page is closed

  • Suggested answer
    YUN ZHU Profile Picture
    100,392 Super User 2026 Season 1 on at

    Hi, sorry I haven't tried this.

    I think you can also try using Job Queue and then run it manually in your code.

    pastedimage1655421055752v2.png

    pastedimage1655421034807v1.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    You should let your page insert all the nessesary data into a process queue table that you create.

    Then you let a codeunit run in the job queue that process the data you have inserted into your queue table.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,947 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 995 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 596 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans