I have any type of file to upload using Custom Service.
I need to upload this file to D365FO via a Custom Service call.
I am wondering how we pass the file to the custom service. What would be the data type?
I have tried with different parm data types like (System.Byte[] , System.IO.Stream, StreamIo) and passed to my method that accesses the file from Postman but the same error was found after sending the request.
my custom service class mehod is >
{
str result;
{
if(_file)
{
result =/file read/;
}
else
{
result =/file not read/;
}
}
catch
{
return result;
}
}