I want to create a menu for import some data from an excel. I know that we have data management feature and we can use this functionality however due to some reasons we need to add a menu in a form for importing the data.
For this aim I am using Sysoperation framework and I created all the related classes. There is a problem in having a paramMethod for stream object. As you know I have to get a fileStream from UIBuilder class and then pass it to contract class to have this value in service class. If I add [DataMemberAttribute, SysOperationControlVisibilityAttribute(false)] above of parmStream method then when I open my menu I will get an error which says : "Could not resolve X++ type class 'CLRObject'". If I don't add this attribute for this method in service class the stream value is null. I guess that the problem is directly related to serialization of this type of object.
The examples of using fileupload in UIbuilder and passing the value to dataContract class are very limited. There is a class TaxSetupLookupConditionImportContract which is the most similar class to my aim but I doubt it really works because first I wrote my contract class without adding dataMemeberAttribute and consequently the parameter values were empty in service class. unfortunately I can't test this tax import class since GTE is not active in my machine.
Is possible to pass Stream object through contract class?