---
id: post/yzhums-com/75350
type: post
title: "Dynamics 365 Business Central: Build and Embed a Custom Mini Widget (Weather, Currency, World Clock, and more) into Role Center"
summary: 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.
tier: community
language: en
tags:
  - custom widget
  - control add-in
  - role center
  - javascript
  - geolocation
  - httpclient
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:39:22.866Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 5ef616c671b5fa472b3a209ca1cbf4f362af61684f8a8ce0ae95dcc78aad4a19
evidence:
  - kind: blog
    url: https://yzhums.com/75350/
    title: "Dynamics 365 Business Central: Build and Embed a Custom Mini Widget (Weather, Currency, World Clock, and more) into Role Center"
    date: "2026-08-25"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/75350/
    title: "Dynamics 365 Business Central: Build and Embed a Custom Mini Widget (Weather, Currency, World Clock, and more) into Role Center"
    date: "2026-08-25"
    commit: null
    t: null
    quote: Since this add-in retrieves data via external APIs, you need to enable 'Allow HttpClient Requests' in the extension target setting before using it.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "75350"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/75350/
published_at: "2026-08-25T01:51:41.000Z"
author: Yun Zhu
full_text: false
words: 205
quotes:
  - text: Since this add-in retrieves data via external APIs, you need to enable 'Allow HttpClient Requests' in the extension target setting before using it.
    why_it_matters: Critical prerequisite for the widget to function properly with external data sources
code_objects_mentioned:
  - codeunit 7568 Geolocation
systems:
  - platform
versions_mentioned: []
cautions:
  - kind: warning
    quote: You need to enable 'Allow HttpClient Requests' in the extension target setting before using it.
    objects: []
    events: []
    versions: []
  - kind: warning
    quote: Location permission must also be granted before use.
    objects: []
    events: []
    versions: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2026/08/Snipaste_2026-08-24_13-08-52.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:01:11.218Z"
---

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

[Read the post](https://yzhums.com/75350/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2026-08-25 · 205 words · tier community · reviewed (checked by Opus)

> 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.

## 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.
