cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the visibility to "Internal only" when adding attachment to MA via Beanshell

Former Member
0 Kudos

Hi,

my problem is as in subject.

i tries with setAccessScope() from AttachmentSubIBeanIfc, but its does't works...

is this the rigth way?

thank you

waldemar

Accepted Solutions (1)

Accepted Solutions (1)

former_member207877
Active Participant
0 Kudos

Hello Waldemar,

In order to set the attachment visibility to internal only try below code.

attachmentsList= doc.getAttachments();

attachmentsListItr = attachmentsList.iterator();

while(attachmentsListItr.hasNext()){

attachmentsListItrMem = attachmentsListItr.next();

attachmentsListItrMem.setAttachmentVisibility(new UserVisibilityEnumType(1));

}

//0 is for internal & externalonly

//1 is for internal only


Regards,

Raj

Former Member
0 Kudos

hi Raj,

thank you very much, i'm really blind

it works.

Former Member
0 Kudos

Hi Rajshekhar,

Thanks for the piece of code.

It helped me.

Regards,

Lava

Answers (0)