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
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:
Hyperlink(GetUrl(ClientType::Current, CompanyToOpen, ObjectType::Page, Page::"Warehouse Shipment", WarehouseShipmentHeader))
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 Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohail Ahmed 2,869 Super User 2025 Season 2
Sumit Singh 2,484
Jeffrey Bulanadi 2,242