
Hi,
We have a text file (pipe delimited) to import using Custom Service. It's an electronic file and every row would have it's own number of columns.
We need to import this file to D365FO via Custom Service call.
I am wondering how do we pass the file to the custom service. What would be the object type of it in the Data contract class?
In C#, we used to do it using Memorystream and FileStream objects but not sure about X++.
Can someone please throw some light on it or if we have any MS standard documentation around this or any standard class from D365FO ?
That would be a great help. Thanks.
- Vikky
Please think again whether a data management API wouldn't be a better choice.
If not, note that you can simply use simply pass the content in as a string. If you needed any data in general, you could use a byte array (System.Byte[]). Alternatively, pass just a link to the file (e.g. a link to an Azure blob) and let the custom service download it. That's the best way for larger files.