Upload JSON file from local system using x++ In D365FO.
FileUploadTemporaryStorageResult fileUpload = File::GetFileFromUser() as FileUploadTemporaryStorageResult;
System.IO.Stream stream = fileUpload.openResult();
str responceJson;
using (var reader = new System.IO.StreamReader(stream))
{
responceJson = reader.ReadToEnd();
}
Keep daxing!!
No comments:
Post a Comment