Notifications
Announcements
Hyperlink(GetUrl(ClientType::Current, CompanyToOpen, ObjectType::Page, Page::"Warehouse Shipment", WarehouseShipmentHeader))
Hi,
I believe the issue is not related to the unavailability of the company in the URL but rather the incorrect structure of the URL. Specifically, there should be an "&" added near "page" for the URL to be valid.
&"
To address this, I've implemented the following code to generate the URL for a specific record from the purchase header. Please review and let me know if this solution works for you:
Hi
Thanks for the detailed breakdown—this is a common challenge when generating deep links to specific records in BC. The issue you're facing stems from two things:
page
System.GetUrl
Here’s how to resolve it:
1. Correct Usage of System.GetUrl The System.GetUrl() function is valid, but it doesn’t automatically format filters. You’ll need to manually append the filter string to the URL.
System.GetUrl()
procedure GenerateRecordUrl(): Text var recordURL: Text; filterText: Text; pageID: Integer; assayRec: Record "NewIncomingLotTable"; begin pageID := 50169; // Replace with your actual page ID recordURL := System.GetUrl(ClientType::Current, CompanyName, ObjectType::Page, pageID, assayRec, true); // Fix malformed URL by inserting ampersand before 'page' recordURL := recordURL.Replace('page=', '&page='); // Construct filter manually filterText := '&filter=ID IS ''' + Format(assayRec.ID) + ''''; // Append filter to URL recordURL := recordURL + filterText; exit(recordURL); end;
2. Common Pitfalls to Avoid
CompanyName
REFINEMAX INC
REFINEMAX%20INC
&
page=
filter=
Format()
Helpful References
Here’s a link that showcase a correct formatted deep link: Dynamics 365 Lab – Share Readable Deep Links If you find this helpful, feel free to mark this as the suggested or verified answer. Cheers Jeffrey
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,651
Khushbu Rajvi. 808 Super User 2025 Season 2
YUN ZHU 718 Super User 2025 Season 2