Hi there,
I have a table in which I store incoming xml strings (from an external source). After processing of the xml, I want the user to be able to view the processed xml, and I want to do that in a new Tab of the browser I'm running Dynamics 365 for Operations in. Yes, I can download the xml file itself, which can be a nice workaround, but I'd really like to show the xml in the user interface.
I have the following code, which did work at some point, but now gives an error message in the browser tab. Here's the error message (in Chrome) and the (simplified) code:

void show(str _xml)
{
System.IO.MemoryStream xmlStream;
System.Byte[] byteArray;
// convert string to stream
byteArray = System.Text.Encoding::UTF8.GetBytes(_xml);
xmlStream = new System.IO.MemoryStream(byteArray);
FileUploadTemporaryStorageResult result = File::SendFileToTempStore_GetResult(xmlStream, “XMLView.xml”) as FileUploadTemporaryStorageResult;
if (result && result.getUploadStatus())
{
url = result.getDownloadUrl();
new Browser().navigate(url,true);
}
}
Any suggestions?
*This post is locked for comments
I have the same question (0)