SMS


SetSearchString

Set indentification string for further notification searchings in history log

Call Method
[C#]
    SetSearchString (String NotificationID, String SearchString)
Parameters
   NotificationID
         Notification ID
   SearchString
         
C# Example Switch to language: [VB.NET]
  //Create personalizer object and Session object
  PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer() ;
  SessionRef.Session sess = new SessionRef.Session() ;
  string SessionID = "";
  try{
      SessionID = pers.CreateSession("LogonName", "Password");
      //Create SMS notification object
      SMSRef.SMS objSMS = new SMSRef.SMS() ;
      // Create server notification object
      string SMSNotifID = sess.CreateSMSNotification(SessionID);
      int NotificationSequenceNumber;
      NotificationSequenceNumber=GetNotificationSequenceNumber()+1 ; //using some user function
      objSMS.SetSearchString(SMSNotifID,NotificationSequenceNumber) ;
      ...;
      SaveNotificationSequenceNumber(objSMS.GetSearchString(SMSNotifID)) ; // retrieve and save search string
      objSMS.Release(SMSNotifID);
      sess.Release(SessionID);
  }
  catch(Exception e){
      //Print exception message e.Message
      sess.Release(SessionID);
  }