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

Announcements

No record found.

News and Announcements icon
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 20

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

  • Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    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
    20 on at

    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,172 Most Valuable Professional on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Hannes Holst Profile Picture

Hannes Holst 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans