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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Hyperlink function add * on filter

(0) ShareShare
ReportReport
Posted on by 50

Hello,


I want to use System.HyperLink function to show a specific record in new tab.

My code looks like this :

 

        DataTypeManagement.GetRecordRef(Rec, RecRefLink);
        RecRefLink.SetRecFilter();
        UpdateURL := GetUrl(ClientType::Web, LeadingCompany, OBJECTTYPE::Page, Page::"RM Vendor Card Update", RecRefLink, true);
        Hyperlink(UpdateURL);

I am on the vendor card, No. '1149'.

When i debug, the updateURL variable value is : 

https://localhost:443/adt/?company=PRE_PROD&page=50005&filter='No.' IS '1149' AND 'Date Filter' IS '''''..31/01/22''

We can see filter on No. = 1149

But when HyperLink is running, my browser open a new tab with url : 

https://localhost:443/adt/?company=PRE_PROD&page=50005&filter='No.' IS '1149' AND 'Date Filter' IS '''''..31/01/22'

and after one second my page is refresh and url become :  

https://localhost:443/adt/?company=PRE_PROD&bookmark=21;FwAAAAJ7BTEAMQAxADQAOQ==&page=50005&filter=Vendor.'No.' IS '@*1149*' AND Vendor.'Date Filter' IS '''''..31/01/22'&dc=0

I can see * are added at the start and the end of No. filter.

Problem i have another record who's started by this string '11149' and the page open this record.

How to solve this problem ? 

I think use another filters like name or ... but it's not very clean.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,829 Super User 2026 Season 2 on at

    Hi, This is a bit strange, I did a simple test in my test environment and it worked well.

    pageextension 50101 MyExtension extends "Item List"
    {
        actions
        {
            addfirst(processing)
            {
                action(TestHyperlink)
                {
                    Caption = 'Test Hyper Link';
                    ApplicationArea = All;
                    PromotedCategory = Process;
                    Promoted = true;
                    Image = Open;
    
                    trigger OnAction()
                    var
                        Cust: Record Customer;
                    begin
                        Cust.Reset();
                        Cust.SetRange("No.", '10000');
                        if Cust.FindSet() then
                            Hyperlink(GetUrl(ClientType::Current, CompanyName, ObjectType::Page, Page::"Customer List", Cust, true));
                    end;
                }
            }
        }
    }

    URL: businesscentral.dynamics.com/.../

    [View:/cfs-file/__key/communityserver-discussions-components-files/758/5756.Test.mp4:842:632

    Hope this will help.

    Thanks.

    ZHU

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 551 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 372 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 339 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans