community postPlatform, DevOps & Performancecommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: Build and Embed a Custom Mini Widget (Weather, Currency, World Clock, and more) into Role Center

This post explains how to build a custom mini widget control add-in for Business Central that displays features like weather, currency, and world clock in the role center. It covers the required setup including enabling HttpClient requests and geolocation permissions.

post Dynamics 365 Lab

Yun Zhu · 2026-08-25 · 205 words · about 1 min

"Since this add-in retrieves data via external APIs, you need to enable 'Allow HttpClient Requests' in the extension target setting before using it."

Key points

  • Custom mini widget can be embedded into Business Central role center with multiple features
  • Weather feature uses Codeunit 7568 Geolocation to retrieve client device location
  • HttpClient requests must be enabled in extension target settings
  • Location permission from client device is required for geolocation functionality
  • Source code is provided as reference for customization

Quotes

  • “Since this add-in retrieves data via external APIs, you need to enable ‘Allow HttpClient Requests’ in the extension target setting before using it.” (Critical prerequisite for the widget to function properly with external data sources)

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.

  • codeunit “7568 Geolocation”

Not found in BC28-30: codeunit “7568 Geolocation”.

Heads up

  • warning: “You need to enable ‘Allow HttpClient Requests’ in the extension target setting before using it.”
  • warning: “Location permission must also be granted before use.”

Context

  • Features: custom mini widget, weather feature, currency display, world clock, javascript control add-in, role center customization

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.