Hi,
I am trying to write an import lifecycle script to delete all document links for a document say: project.
I've tried the following code, but it keeps throwing me Indexoutofbound exception, can some one help on why this error happens?
docLinks = doc.getDocumentLinkList();
docLinksSize = docLinks.size();
if(docLinksSize > 0){
for (int i=docLinksSize; i>0; i--){
docLinks.delete(docLinks.get(i-1));
}
}
Thanks.