DotNet .... is missing (BC22)

MattH
Member Posts: 15
Hi,
I am desperately trying to understand why something that I have being doing for years in prior versions of NAV/BC no longer works in BC22. It is to do with Base64 encoding.
In the past, I have often used TempBlob's Base64 Encode/Decode features. I realised recently that in later, but not BC, version Codeunit 10 "Type Helper" has also had Base64 functionality in it.
I see that all of these built-in functionalities appear (unless I am looking in the wrong place) to have disappeared.
I thought I'd just copy-and-paste the functionality from a previous Type-Helper codeunit:

This has not worked!
What is confusing me more, is that I have found standard functionality in BC22 (in the Base Application) doing exactly the same thing!
I have tried building a Container that includes the Base Application. This still has not worked.
What am I doing wrong, please can anyone help?
I am desperately trying to understand why something that I have being doing for years in prior versions of NAV/BC no longer works in BC22. It is to do with Base64 encoding.
In the past, I have often used TempBlob's Base64 Encode/Decode features. I realised recently that in later, but not BC, version Codeunit 10 "Type Helper" has also had Base64 functionality in it.
I see that all of these built-in functionalities appear (unless I am looking in the wrong place) to have disappeared.
I thought I'd just copy-and-paste the functionality from a previous Type-Helper codeunit:

This has not worked!
What is confusing me more, is that I have found standard functionality in BC22 (in the Base Application) doing exactly the same thing!
I have tried building a Container that includes the Base Application. This still has not worked.
What am I doing wrong, please can anyone help?
0
Best Answer
Answers
-
In BC world, the moment you write a variable of type "DotNet", you set yourself up for failure.
Base64 functionality has been moved to Codeunit "Base64 Convert":
https://github.com/microsoft/ALAppExtensions/blob/main/BREAKINGCHANGES.md#base64-convert-module
1 -
In BC world, the moment you write a variable of type "DotNet", you set yourself up for failure.
Base64 functionality has been moved to Codeunit "Base64 Convert":
https://github.com/microsoft/ALAppExtensions/blob/main/BREAKINGCHANGES.md#base64-convert-module
I was easily fooled by the use of DotNet variables in the Base Code.
I really appreciate the link to the Breaking Changes list. I've also been caught out by the removal of the TempBlob Table a while back. With that one, I quickly discovered that it had also become a Codeunit (after a quick Google, but from a different source to the above).
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions