Custom Service Broker file parameter.

  • 18 October 2018
  • 0 replies
  • 4 views

Badge +7

Is there a code example of a service broker accepting a file attachement.

 

[Attributes.Method("ReadCustomerCSV", MethodType.List, "ReadCustomerCSV", "ReadCustomerCSV",
//Inputs
new string[] { "ParameterFile" },
//Required Inputs
new string[] { "ParameterFile" },
//Returns
new string[] { "CustomerNumber", "PrincipalAmount", "FreqId" })]
// public string ReadCSVToList([Attributes.Parameter("File", SoType.File,"File", "The file to be processed.", true)] FileProperty File)
public List<CustomerCSV> ReadCSVToList([Attributes.Parameter("ParameterFile", SoType.File, "MyFile", "The file to be processed.", true)] FileProperty File)
{
//code here;
return null;
}

 

 

 

This is what I had so far, but it doesnt seem to accept a file attachement.


0 replies

Be the first to reply!

Reply