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

Debug Page API

(1) ShareShare
ReportReport
Posted on by 93
Is it possible to debug the trigger/validate code on a page with type?
 
I have seen some posts that you can attach to sandbox to debug webservice call, however on a custom api I cannot get it to stop on breakpoints.
 
Thanks so much
I have the same question (0)
  • Suggested answer
    Sami Ullah Profile Picture
    315 Moderator on at
    Hi,
    Yes, It is possible to debug.
     
    Please Review Below Link.
  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
  • MH-06060002-0 Profile Picture
    93 on at
    Thanks you both for your quick replies.
     
    In postman when making the post to the custom api we are using the credentials that are used in BC under the "Microsoft Entra Applications" page.  That userid does not exist in the regular bc users table.  when i try to attach to that user (using the guid) i receive the error 
     
    Error: The user specified in your launch.json file cannot be found on the tenant.
     
    Also the sessionid does not appear in the Manage Sessions for API calls to the custom API
     
    Please advise? I came across this post that I think is dealing with this issue but I am not clear on what the proposed resolution is

     


    Thanks!
     
  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Hi, please try the username mentioned below.
     
    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 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans