3 of 3 people found this helpful
At first sight :Annotations are attached to the event after the event is created, so a refine rule applied to that event won't catch it.
You can rewrite your rule as follows to trigger whenever the notes field is updated
where [ ($EV.mc_object_class contains "LM_APP00420_GDS_Fastighet") ]
$LEN = listlen($EV.mc_notes);
if ($LEN >= 1) then
$VAL = listgetelt($EV.mc_notes,1);
$Newlist = strtolist($VAL,',');
$STR = listgetelt($Newlist,1);
$STR = "";
$EV.lm_extra = $STR;
Thank you so much! It seems to work much better now.
But i only get the part in yellow below, i just want the text in green from mc.note.
I thought that i just could use $STR = listgetelt($EV.mc_notes,1); tp get that text but that´s not the case.
Is there an easy way to get the text between: "0x5c924bb5,annotation_attach.mrl:new update_annotation_alarm,"?
1 of 1 people found this helpful
cant you jump through the different parts of the string with listgetelt($Newlist,1); or listgetelt($Newlist,2); and so on?
My bad, yes of course
It's working now.
I really appreciate your help!