Notification->Causes is  Reference List;  So assigning it as string format won’t work.  Sample would be;  // get instance of existing notification; icsNotificationFactoryObj = object(“ICS_NotificationFactory”, “ICS-NotificationFactory”);  // get the problem; icsProblemNotif = icsNotificationFactoryObj->findNotification(“className”,”instanceName”,”eventName”);  // get the problem’s existing causedBy List existingCausedByList = icsProblemNotif->CausedBy;  // get the notification to be added; eventTobeadded = icsNotificationFactoryObj->findNotification(“className”, “instanceName”, “eventName”);  // add it to the problem existingCausedByList += eventTobeadded; icsProblemNotif->CausedBy = existingCausedByList;  When assigning to Causes you need to use += since it is a relationshipset. Also you be checking your object handles with the isNull method each time.  Kind Regards,  Sean
Hi All,  I am trying to put some SMARTS_ids (cause list of few events) into a Problem (nothing but an event).  a) First of all, i have doubt if i am creating SMARTS_id format properly:  (it is as below)  xxx= "ICIM_Notification::NOTIFICATION-"+className+"_"+sourceId+"_"+"Sp_"+fields.alarmname   b) I am using notif->CausedBy=xxx;   But neither problem is being creating nor the cause list display for it.   Can anybody help me to solve this problem.  Thanks in advance.
Trying to put causeList into an event (Problem)