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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Page Part problem with web service

(0) ShareShare
ReportReport
Posted on by 18

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

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 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

  • Verified answer
    SamCha Profile Picture
    18 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


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

    Yes you can.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans