Skip to Content
0
Former Member
May 03, 2015 at 09:08 AM

Sending mail to MA collaborators

25 Views

Hello Expert ,

We have a requirement for sending manual mail to to MA collaborators - which includes normal user and each person added within a group ( in case of group added as collaborator ).

We are trying to create a toolbar script on MA page and with our efforts so far we are able to send the mail using custom template to normal user added as MA collaborator. However , in case of a group added as collaborator , we are still trying to retrieve each person from group and send them mail .Can you please help ?

I am pasting piece of code while we trying to retrieve to collaborator group persons . I am able to get only group name .

agreementBean = doc.getRootParentIBean();

CollaboratorCollection = agreementBean.getCollaborators();

collectionsize = CollaboratorCollection.size();

if(collectionsize >0)

{

Collectionbean= CollaboratorCollection.get(2); // test for retrieving 3rd person which is a group

CollectionName_ObjectRef= Collectionbean.getObjectReference();

UserType= ""+Collectionbean.getCollaboratorType();

if(UserType.equals("user"))

{

email=Collectionbean.getCollaboratorEmail();

}

if(UserType.equals("group"))

{

group_name=Collectionbean.getObjectReference();

a=group_name.getDisplayName();

}

Thanks in advacne

Sudipta