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

Notifications

Announcements

No record found.

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
    414 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
    Inge M. Bruvik Profile Picture
    1,111 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans