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 :
Small and medium business | Business Central, N...
Suggested Answer

Opening table using Hyperlink function in BC14

(0) ShareShare
ReportReport
Posted on by 67

Hi,

I have issue with opening table on web client on test server. I have to mention that everything works fine on my local computer.

URL starts with https://xxxx/navserverinstance ... but when I try to open table it converts to http://yyy/navserverinstance (in new tab).

Code for this opening was 

with ActiveSesstion do

                 if get(ServiceInstanceId(), SessionId()) then 

                      Hyperlink('http://' + "Server Computer Name" + '/' + "Server Instance Name" + '/?table=' + Format("Object ID"));
I have tried to avoid explicit naming of server name and used this code:
Hyperlink(GetUrl(ClientType::Web, CompanyName()ObjectType::Table, "Object ID"));
but I got the same (wrong) url.
Any ideas?
           
I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    use ip adress instead.

  • Vojkan Profile Picture
    67 on at

    Thank you, but I don't want to harcode anything because this has to work on client server also.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    Try this

    BaseUrlTxt := GetUrl(CLIENTTYPE::Current, CompanyName);

               if StrPos(BaseUrlTxt, '?') = 0 then

                   ViewFullTableURL := StrSubstNo('%1?table=%2', BaseUrlTxt, "Object ID")

               else

                   ViewFullTableURL := StrSubstNo('%1&table=%2', BaseUrlTxt, "Object ID");

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans