Hi All
I am sending data from Power Automate to an XML port. I am getting the following error
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1865.
Function in Business Central is in codeunit published as Webservice called in power automate
procedure ImportIMISCustomers(VAR iMISCustomerImport: Text)
var
TempBlob: Codeunit "Temp Blob";
Instream: InStream;
OutStream: OutStream;
Base64Convert: Codeunit "Base64 Convert";
iMISCustomerXML: XmlPort "iMIS Customer Import";
begin
TempBlob.CreateOutStream(OutStream, TextEncoding::UTF8);
OutStream.Write(Base64Convert.FromBase64(iMISCustomerImport));
TempBlob.CreateInStream(Instream, TextEncoding::UTF8);
iMISCustomerXML.SetSource(Instream);
iMISCustomerXML.Import();
end;