web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to store a Hexadecimal value in Business Central?

(0) ShareShare
ReportReport
Posted on by 60

Hi Experts,

I tried to recreate the scenario by first converting a text, decimal and date fields into hexadecimal

and further converting the concatenated result value to Base64 by using Base64Convert Codeunit.

But the BC Base64 conversion is giving different result than the actual Hex to Base64 conversion result from online.

Later I realized the the Hex results which I am storing in text variable in BC is actually converting text to Base64 instead of Hex to Base64.

Could you please guide me how to store a Hexadecimal in BC and convert it to Base64 ?

Thanks In Advance.

 

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    485 on at

    Hi,

    Please follow the way in post to convert to Hex.

    community.dynamics.com/.../convert-text-to-hex

  • Pushparaj Kohli Profile Picture
    60 on at

    Hi Bilal,

    Thanks for the answer.

    But I already converted my Text to HEX.

    The Problem is with Converting the HEX to Base64 format.

    It's because I can only able to store the Value of  Hexadecimal In Text Variable.

    And When I tried to Convert that Hexadecimal value which is stored in a Text Variable, BC trying to convert that as TEXT to BASE64 not HEXADECIMAL to BASE64.

    That's why I am asking is there any way to store the HEXADECIMAL value as a specific data type and as it is.( HEXADECIMAL to BASE64).

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Maybe you can find something useful in this video from Eric:

    www.youtube.com/watch

    Business Central does not have a seperate datatype for handling HEX. But you could of course integrate to an Azure function for handling you HEX data.

    learn.microsoft.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 658 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 499 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans