Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL
Validating URL security in Business Central AL code using the IsSecureHttpUrl method from codeunit 1299 Web Request Helper. This helps confirm whether external URLs are secure (HTTPS) before using them in customizations, APIs, or barcode generation services.

post Dynamics 365 Lab
"In codeunit 1299 "Web Request Helper": procedure IsSecureHttpUrl(Url: Text)"
Key points
- Use codeunit 1299 Web Request Helper and its IsSecureHttpUrl procedure to validate URL security
- The method checks both HTTPS compliance and URL validity, making it useful when calling external services
- Can be implemented in table extensions like Customer to validate URLs before processing
- HTTPS encryption is critical for protecting sensitive data transmission in external integrations
Quotes
- “In codeunit 1299 “Web Request Helper”: procedure IsSecureHttpUrl(Url: Text)” (Identifies the exact system method for validating URL security in AL code)
- “This method also checks if the URL is valid, so it is very helpful when calling external services or web pages in AL.” (Demonstrates dual functionality: the method validates both security and URL validity for external integrations)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
Context
- Features: IsSecureHttpUrl procedure, URL validation, HTTPS checking, external API integration
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.