C# API read SMS

Hello ,
I’m trying to read SMS from the SIM
when I do this :

 mikrotik.Send("/tool/sms/inbox/print");
 mikrotik.Send("?number=1" , true);

the answer is “!done”
but when I try to run it without the number he print me all the SMS in the inbox.

so how can I tell him to print me just 1 SMS ?

Thanks ,

Like all menus, you can use the print command’s “from” argument. However, instead of a number, it needs an ID. And you can get all IDs (and just the IDs that is) by calling “find”. The reply will contain a “ret” property that has all IDs, separated by… I think it was “;” in most recent versions, though some earlier ones use “,”.

I thought about it ,
but how can I get just the ID of message 1\2\3?
this is the problem…

any idea?

Thanks ,

The list returned by “find” has them in order. The first ID corresponds to message 1, the second to message 2, etc.

Same for all menus.