Can we add document links through scripting on Master Agreement header page? We are trying to mass update document links for about 3000+ records and hence I need to create a script (one time task) that can add these values on MA header page.
I am trying to create the document link defintion as follows:
DocumentLinkDefinitionIBeanIfc dld = (DocumentLinkDefinitionIBeanIfc)
TypeFactory.createObjectReference(620);
dld.setDisplayName("Test");
dld.setInternalName("Test");
dld.setLinkClassId(509);
dls.setSystemDefined(new
Boolean(false));
dld.setLinkDirectionType(new DocLinkDirectionTypeEnumType(3));
dld.setLinkDefinitionType(new DocLinkDefinitionTypeEnumType(3));
and then set this document link defintion to Document Link Bean as follows:
DocumentLinkIBeanIfc dl = (DocumentLinkIBeanIfc)
TypeFactory.createObjectReference(509);
dl.setExtRefDoc("99999");
dl.setExtRefLine("900");
dl.setLinkDefinitionObjRef(dld);
But this is giving me error.
Let me know if I am doing something wrong.
Any help will be appreciated.
-Regards,
Bindu Sharma