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

Notifications

Announcements

Community site session details

Community site session details

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

ErrorCode: Application_CallbackNotAllowed while posting item journal from API page

(0) ShareShare
ReportReport
Posted on by 593

I am trying to post the item journal using the procedure in an API page by calling the standard codeunit Item Jnl.-Post. But i got this error.

ErrorCode: Application_CallbackNotAllowed  Microsoft Dynamics 365 Business Central Data Services attempted to issue a client callback to show a confirmation dialog box: Do you want to post the journal lines? (CodeUnit 241 Item Jnl.-Post). Client callbacks are not supported on Microsoft Dynamics 365 Business Central Data Services.

Have anyone faced this error before and resolved it. Guide me on this error

I have the same question (3)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Have a look here:

    learn.microsoft.com/.../apptest-webservices

    Hope it helps.

  • Verified answer
    DAnny3211 Profile Picture
    11,401 on at

    Hi

    MESSAGES or DIALOGs are called in the COdejuniti which give you this error, so when in AL you call up the CodeUnit 241 Item Jnl.-Post (surely you will call it up in your WS) , hook into the OnBeforeCOde event and set the variable HideDIalog=TRUE

    pastedimage1670845534118v2.png

    check my answer if it helped you, thanks

    DANiele

  • Suggested answer
    Tamilarasu Arunachalam Profile Picture
    593 on at

    Thanks DAnny3211

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,913

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,064

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans