{"title":"HttpClient.Timeout([Duration]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpclient/httpclient-timeout-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/httpclient/httpclient-timeout-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/httpclient/httpclient-timeout-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":"Gets or sets the duration in milliseconds to wait before the request times out.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"HttpClient.Timeout([Duration]) Method","slug":"httpclienttimeoutduration-method","at":0,"chars":1490},{"level":2,"title":"Syntax","slug":"syntax","at":180,"chars":151},{"level":2,"title":"Parameters","slug":"parameters","at":331,"chars":231},{"level":2,"title":"Return Value","slug":"return-value","at":562,"chars":148},{"level":2,"title":"Remarks","slug":"remarks","at":710,"chars":642},{"level":2,"title":"Related information","slug":"related-information","at":1352,"chars":138}],"text":"# HttpClient.Timeout([Duration]) Method\n> Version: _Available or changed with runtime version 1.0._\nGets or sets the duration in milliseconds to wait before the request times out.\n## Syntax\n```al\n[CurrentTimeout := ]  HttpClient.Timeout([SetTimeout: Duration])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nHttpClient\nType: httpclient-data-type\nAn instance of the httpclient-data-type data type.\n*[Optional] SetTimeout*\nType: ../duration/duration-data-type\nThe duration in milliseconds to wait before the request times out.\n## Return Value\n*[Optional] CurrentTimeout*\nType: ../duration/duration-data-type\nThe duration in milliseconds to wait before the request times out.\n## Remarks\nIf you don't set a duration, then a default value is used. The default value is currently 100000 ms (100 seconds).\nThe SetTimeout duration is limited by the NavHttpClientMaxTimeout parameter that is configured for Business Central Server instance. If you set the duration to a value that is greater than the value of the NavHttpClientMaxTimeout parameter, a 'NavNclHttpClientTimeoutTooLargeException' error is thrown. The default value of the NavHttpClientMaxTimeout parameter is 00:05:00. To change the NavHttpClientMaxTimeout parameter, see Configuring Business Central Server<../../../administration/configure-server-instance>.\n## Related information\nhttpclient-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}