IAgileSession function sendMail throws exceptions

Hello,

I came across a function in com.agile.api.IAgileSession: sendMail(IUser[] arg0, String arg1). I was trying to test it out but it throws various ClassCastExceptions. I also cannot find the function listed in any Agile 9.3.4 documentation. 

Han anyone ever used this function? If so then how to use it properly?

Add Comment
1 Answer(s)

I work with this example :

IAgileSession session =AgileSessionFactory.createSessionEx(loginParams);
List notifyList =new ArrayList();
IDataObject user =(IDataObject)session.getObject(com.agile.api.IUser.OBJECT_TYPE,"JohnDoe");
notifyList.add(user);
user =(IDataObject)session.getObject(com.agile.api.IUser.OBJECT_TYPE,"JaneDoe");
notifyList.add(user);
IDataObject agileObject =(IDataObject)session.getObject(com.agile.api.IChange.OBJECT_TYPE,"C0001");
boolean urgent = true;
String comment ="Add ECO approver, Notify CA";
String template ="Automated SDK process added ECO approver";
session.sendNotification(obj,templateName,notifyList,urgent,comment);

Agile Angel Answered on November 5, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.