Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Page Part problem with web service

(0) ShareShare
ReportReport
Posted on by 2

I added Zetadocs to my items page, but it is used in a web service and I get this error:

Exception message: Microsoft Dynamics NAV Business Web Services attempted to issue a client callback to activate page 9041209 Zetadocs Rel. Docs. Page Part. Client callbacks are not supported on Microsoft Dynamics NAV Business Web 

How do I configure that Part to not be loaded/used in the web service call?

Edit: I think I have to add an IF in my onaftergetrecord so that it doesn't call Zetadocs when it is called from a web service. How do you test if the current thread is in a visual client versus web service call?

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Page Part problem with web service

    Yes you can.

  • Verified answer
    SamCha Profile Picture
    SamCha 2 on at
    RE: Page Part problem with web service

    I found GUIALLOWED, could I use that in the visible field?

    Edit: It does work! Nice. I used this:

    IF GUIALLOWED AND ZdRecRef.GET(ZdRecRef.RECORDID) THEN


  • Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Page Part problem with web service

    In Active Session table you have the Client Type field and with that you can detect the client type of the current session.

    Something like:

    If ActiveSession.GET(SERVICEINSTANCEID,SESSIONID) and (ActiveSession."Client Type" = ActiveSession."Client Type"::"Web Service") THEN

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans