Extensions with target cloud can’t call XmlConvert.EncodeName / DecodeName because those .NET methods require OnPrem scope, leaving developers without a simple way to produce the “_x0020_”‑style encoding needed for API tests.
Also there is no easy way to Decode when creating APIs between BC instances.
Solution
Add procedures to Type Helper codeunit or create a wrapper for .NET XmlConvert class with the following procedures:
procedure EncodeName(Value: Text): Text;
procedure DecodeName(Value: Text): Text;
The helper retains the existing .NET logic, so no AL re‑implementation is needed.
Benefits
Cloud‑compatible – callable from any Cloud extension.
Reuse existing logic – no duplicate AL code.
Simplifies development – one‑line calls replace complex work‑arounds.