I am getting the following error when I try to use a smart object
"SmartObject instance property 'MethodToExecute' must be set to the method name of this instance"
Here's the code that I am using
SmartObjectClientServer SmoServer = new SmartObjectClientServer();
SCConnectionStringBuilder cb = new SCConnectionStringBuilder();
cb.Host = "servername";
cb.Port = 5555;
cb.Integrated = true;
cb.IsPrimaryLogin = true;
SmoServer.CreateConnection();
SmoServer.Connection.Open(cb.ToString());
SmartObject soK2ReqList = SmoServer.GetSmartObject("K2_Request_List_4d53679c_ebba_4ce5_ad18_7f7a2db84aa4");
soK2ReqList.MethodToExecute = "Create";
soK2ReqList.Propertiest"Title"].Value = txtTitle.Text;
soK2ReqList.Propertiest"Message"].Value = txtMessage.Text;
//Here's the line that generates the exception
SmartObjectList soResult = SmoServer.ExecuteList(soK2ReqList);
lblInfo.Text = soResult.SmartObjectsListt0].Properties]"ID"].ToString();
SmoServer.Connection.Close();
thanks,
Luis