Sorry to ask again sir, but the code it does'nt seems to work , when there's a lot of sms , they just do work when it has only one sms, i did already using foreach, but still it does not work, it always says invalid internal item, what could be wrong?
this code deletes only one sms if it is only one sms in the inbox
/tool sms inbox
{
:global ref [:pick $newMess ([:find $newMess "Ref. No. "] + 9) ([:len $newMess] - 1)]
[/tool sms inbox remove [find where message~$ref]]
}
this one tells invalid internal item number,
:global ref [:pick $newMess ([:find $newMess "Ref. No. "] + 9) ([:len $newMess] - 1)]
:local accNum "2021001"
:foreach i in=[find] do={
[/tool sms inbox remove [find where message~$ref]]
}
}