Get Service Tier Port from CAL

Hello

I would like to get the service tier SOAP and OData port numbers from NAV and present them to the user.

Is there a way read the Current Service tier configuration, from CAL?
Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-841

Best Answer

  • Johannes_NielsenJohannes_Nielsen Posts: 205
    Accepted Answer
    I ended up using this
    http://www.kauffmann.nl/2015/04/07/read-server-settings-from-cal-code/

    Documentation()
    
    OnRun()
    MESSAGE('%1',GetServerSettingSOAPPort);
    
    LOCAL GetServerSettingSOAPPort() ReturnValue : Text[1024]
    
    IF ISNULL(MicrosoftDynamicsNavTypesServerUserSettings) THEN
      MicrosoftDynamicsNavTypesServerUserSettings := MicrosoftDynamicsNavTypesServerUserSettings.Instance;
    
    MicrosoftDynamicsNavTypesServicePort := MicrosoftDynamicsNavTypesServerUserSettings.SOAPServicesPort;
    EXIT(MicrosoftDynamicsNavTypesServicePort.ToString);
    
    Best regards / Venlig hilsen
    Johannes Sebastian
    MB7-840,MB7-841

Answers

Sign In or Register to comment.