Question

Custom ServiceObject Question - Pass a string array to a method

  • 30 April 2020
  • 0 replies
  • 193 views


Hi all,

 

Is it possible to pass a string array or List<string> to a method ?

 

What kind of Property i need to create ?

 

the SoType.MultiValue property do the job ? if yes, how ?


for example i have the following method PassAStringArray, how to declare the Property ?

--> (new Property("myStringArray", ??? , SoType.???, new MetaData("my string array", "my string array"))

 

the piece of code i'm using is

 

public DataTable PassAStringArray(string [] myStringArray)
{
   DataTable dt= new DataTable(...)
  //do something and ...
  //...add rows ...
  return dt;
}


internal virtual SDKObjects.Properties DescribeProperties()
{
    var props = new SDKObjects.Properties();

    //Input Fields
    props.Create(new Property("myStringArray", "System.String???", SoType.???, new MetaData("my string array", "my       string array")));

   //output fields
   //...
   return props;
}


0 replies

Be the first to reply!

Reply