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 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?
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.
Hi, sorry I haven't tried this.
I think you can also try using Job Queue and then run it manually in your code.
Hope this helps as well.
Thanks.
ZHU
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
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
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
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
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1