{"title":"System.GetUrl(ClientType [, Text] [, ObjectType] [, Integer] [, Record] [, Boolean]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/system/system-geturl-clienttype-string-objecttype-integer-table-boolean-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-geturl-clienttype-string-objecttype-integer-table-boolean-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-geturl-clienttype-string-objecttype-integer-table-boolean-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Generates a URL for the specified client target that is based on the configuration of the server instance.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"System.GetUrl(ClientType [, Text] [, ObjectType] [, Integer] [, Record] [, Boolean]) Method","slug":"systemgeturlclienttype-text-objecttype-integer-record-boolean-method","at":0,"chars":2463},{"level":2,"title":"Syntax","slug":"syntax","at":401,"chars":255},{"level":2,"title":"Parameters","slug":"parameters","at":656,"chars":1621},{"level":2,"title":"Return Value","slug":"return-value","at":2277,"chars":52},{"level":2,"title":"Related information","slug":"related-information","at":2329,"chars":134}],"text":"# System.GetUrl(ClientType [, Text] [, ObjectType] [, Integer] [, Record] [, Boolean]) Method\n> Version: _Available or changed with runtime version 1.0._\nGenerates a URL for the specified client target that is based on the configuration of the server instance. If the code runs in a multitenant deployment architecture, the generated URL will automatically apply to the tenant ID of the current user.\n## Syntax\n```al\nString :=   System.GetUrl(ClientType: ClientType [, Company: Text] [, ObjectType: ObjectType] [, ObjectId: Integer] [, Record: Record] [, UseFilters: Boolean])\n```\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Parameters\nClientType\nType: ../clienttype/clienttype-option\nSpecifies the client that you want to generate the URL for. If you want to generate a URL that depends on the client that the user is accessing the URL from, choose Current. A runtime error occurs if the ClientType is set to SOAP or OData but the specified object type and ID has not been published as a web service.\n*[Optional] Company*\nType: ../text/text-data-type\nSpecifies the company that the URL must contain. If you do not specify a company, the URL will run in the user's current company.\n*[Optional] ObjectType*\nType: ../objecttype/objecttype-option\nSpecifies the object type that the URL must open. Valid values are: Table, Page, Report, Codeunit, Query, or XmlPort. If you specify an object type, you must also specify an object ID in the ObjectId parameter. Otherwise, the user will see a runtime error. If you set the ObjectType parameter to Page, you can also specify a record variable in the Record parameter.\n*[Optional] ObjectId*\nType: ../integer/integer-data-type\nSpecifies the ID of the specified object type that the URL must open.\n*[Optional] Record*\nType: ../record/record-data-type\nSpecifies the Record variable that specifies which record to open.\n*[Optional] UseFilters*\nType: ../boolean/boolean-data-type\nSpecifies whether to include filters that are defined on the object as a text string in the URL. Note, UseFilters is supported only for ClientType: Desktop, OData, Phone, Tablet, Web, Windows, Default, ODataV4, Teams and Current, when CurrenClientType is one of the ClientType mentioned. An empty string is returned otherwise.\n## Return Value\nString\nType: ../text/text-data-type\n## Related information\nsystem-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}